-
Notifications
You must be signed in to change notification settings - Fork 1
DPoP token service #31
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
| <PropertyGroup> | ||
| <TargetFrameworks>net8.0;net9.0</TargetFrameworks> | ||
| <RootNamespace>Fhi.Authentication</RootNamespace> | ||
| <Version>2.1.0-local3</Version> |
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.
Remove before merge!
| { | ||
| services.AddTransient<OpenIdConnectCookieEventsForApi>(); | ||
| services.AddTransient<ITokenService, DefaultTokenService>(); | ||
| services.AddTransient<IUserTokenEndpointService, UserTokenEndpointService>(); |
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.
Trengs Tokenservice i denne lenger? Er jo flyttet opp til sampelet
| @@ -0,0 +1,40 @@ | |||
| using Duende.IdentityModel; | |||
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.
La oss ta en gjennomgang på denne. Jeg har noen tanker her.
| namespace Fhi.Authentication.Tokens | ||
| { | ||
| // TODO: Need to go through this. Copied from HelseId samples and Duende. Should we handle multiple algorithms? | ||
| // need to figure out what algs, size etc. to support |
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.
Vi må se litt mer på denne. Mulig ny oppgave. Men skal den være sånn så bør vi la den være private.
| /// </summary> | ||
| /// <returns></returns> | ||
| [Test, Explicit("This test getting DPoP token from HelseID with the TokenService")] | ||
| public async Task RequestDPoPToken() |
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.
Flytte til akseptanse test?
Dpop token service was moved from HelseId tool to Authextensions.
Examples of use will be added in codelabs
Note! Breaking change for TokenService, the old implementation was replaced with new functionality. Old implementation probably not used outside the project. It had functionality which could be replaced by Duende UserTokenEndpointService.
RelatesTo https://github.com/orgs/FHIDev/projects/1/views/25?filterQuery=domain%3AApplicationSecurity+&pane=issue&itemId=124468448&issue=FHIDev%7CFhi.Fellesteam%7C219