-
Notifications
You must be signed in to change notification settings - Fork 3
feat: TokenGenerator | Personal token #1525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
#1524 - Added new TokenGeneratorController - Added new RegisterService for party info lookup - Moved existing token building logic from AuthenticationController to a new TokenService
| /// <param name="cancellationToken">Cancellation token</param> | ||
| /// <returns>A personal access token for the user</returns> | ||
| [HttpGet()] | ||
| [Route("personaltoken")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hvordan skal vi låse ned dette til bare test-miljøer?
Skal det være åpent i test-miljøer eller kreve noe autentisering for å få tilgang?
| Content = JsonContent.Create(body) | ||
| }; | ||
|
|
||
| var response = await httpClient.SendAsync(request, HttpCompletionOption.ResponseContentRead, cancellationToken); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ikke forstått hva som må til for at platformtoken blir lagt på automatisk gjennom servicedefaults httpclient implementasjonen. Har lokalt testet med å legge på ekstra headere så lenge
| var partyinfo = await registerService.GetParty(pid, cancellationToken); | ||
| if (!partyinfo.Success || partyinfo.Party == null) | ||
| { | ||
| return NotFound($"No party found for pid {pid}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BadRequest and ProblemDetails plz
|


Description
Related Issue(s)
Verification
Documentation