Closed braiinzz closed 2 weeks ago
I can't find anything wrong in the steps you're describing. I did some debugging too and in my case RawValue
has the value transaction:id
.
Can you please take a look at our example here and set the same breakpoint in ParameterizedScopeParser
. And when client and identity provider are running choose the option "h" in the client console.
That should give you the transaction:123
value in RawValue
. Is that's the case you should be able to determine what's going wrong in your solution by comparing it with the example.
In addition, IdentityServer already has some built-in support for a tenant parameter via the acr_values param:
https://docs.duendesoftware.com/identityserver/v7/reference/endpoints/authorize/#optional-parameters
Sorry, it was my fault. I requested the token with the parameter client_scopes and not scope 🤦
Which version of Duende IdentityServer are you using? 7.0.1
Which version of .NET are you using? net8.0
Describe the bug
I tried to add parameterized scopes as described on this page: https://docs.duendesoftware.com/identityserver/v7/fundamentals/resources/api_scopes/#parameterized-scopes
However, the
RawValue
is everytime only the scope without the parameter part. In the example code theRawValue
is onlytransaction
and nottransaction:id
. I'm not sure if I understood it correctly how to configure the client itself (described at "To Reproduce")To Reproduce
transaction
transaction
transaction:id
With the debugger you can now check the value of
scopeContext.RawValue
in my case it wastransaction
.Expected behavior
The property
scopeContext.RawValue
in the classParameterizedScopeParser
is equal totransaction:id
.Additional context
We want to use the parameterized scope to identify the tenant the client requests the token for.