Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
wc.Headers[HttpRequestHeader.ContentType] = "application/json";
wc.Headers[HttpRequestHeader.Authorization] = "Bearer " + Kodi.Kodiak.Client.Settings.Context.KodiakServiceToken;
var response = await wc.UploadStringTaskAsync(Kodi.Kodiak.Client.Settings.Context.QuoteServerUrl + "api/quotes", json);
CreateQuoteResponse createQuoteResponse = JsonConvert.DeserializeObject<CreateQuoteResponse>(response);

Deployment

Jenkins:

https://jenkins.livemarketdata.com/view/.Net/view/KODIAK OMS/view/Kodiak Token Issuer/

Octopus:

https://kodiak.octopus.app/app#/Spaces-1/projects/kodiak-token-issuer/deployments

Release to test

To deploy to a new tenant on a test environment, the tenant first needs to be connected to the project on Octopus Deploy.

The release to test builds use the kodiak_token_issuer_release build. For a new test build, simply copy one of the projects in the release to test folder and replace ‘tenant’ in the ‘Execute shell’ script with the correct tenant.

To see if the token issuer is working correctly, go to http://localhost/token-issuer-iis/create on the target machine. If it returns a token on the form {“token”: “{{jwt_token}}”}, everything should be good to go.

If http://localhost/token-issuer-iis/create returns:

-> HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

You will need to install dotnet 8 on the machine:

https://stackoverflow.com/questions/9216158/iis-500-19-with-0x80070005-the-requested-page-cannot-be-accessed-because-the-rel