Skip to content

Conversation

@leknesh
Copy link

@leknesh leknesh commented Sep 23, 2025

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

@leknesh leknesh self-assigned this Sep 23, 2025
@leknesh leknesh added the enhancement New feature or request label Sep 23, 2025
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<RootNamespace>Fhi.Authentication</RootNamespace>
<Version>2.1.0-local3</Version>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove before merge!

@leknesh leknesh marked this pull request as draft September 23, 2025 10:56
@leknesh leknesh changed the title DPoP token service WIP: DPoP token service Sep 23, 2025
@leknesh leknesh changed the title WIP: DPoP token service DPoP token service Sep 26, 2025
@leknesh leknesh marked this pull request as ready for review September 26, 2025 07:28
{
services.AddTransient<OpenIdConnectCookieEventsForApi>();
services.AddTransient<ITokenService, DefaultTokenService>();
services.AddTransient<IUserTokenEndpointService, UserTokenEndpointService>();
Copy link
Collaborator

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;
Copy link
Collaborator

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
Copy link
Collaborator

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()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flytte til akseptanse test?

Kattemat
Kattemat previously approved these changes Sep 29, 2025
@Kattemat Kattemat dismissed their stale review September 29, 2025 07:22

var ikke meningen approve :3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants