-
Hello, Things are working nice for me with mod_auth_openidc and I'm giving a try to mod_oauth2 to improve an API access that is used for system to system integration (using a service account / user). I have installed latest with required dependency and use browser and postman to test the setup. I have tried different things but I'm stuck getting a failure on token verification:
Things seems to be ok on postman side, I use the jwk url that is declared in Azure Ad metadata for my app. I use something like this in my location
I will get back to the problem with a fresher head but would gladly take tips of things I could try or double check to get past this hurdle. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
I have tried and validated a few other things, still not understand what could be missing. The only other thing I noticed is that I can get to the ressource if I use the id token instead of the access token... no the solution but an observation. |
Beta Was this translation helpful? Give feedback.
-
it looks like you've configured the wrong |
Beta Was this translation helpful? Give feedback.
-
Thanks for input. I have tried a simpler test (using python) and I do get Signature verification failed There is something in the documentation about custom mapping (discussed here : https://learn.microsoft.com/en-us/answers/questions/1163810/where-can-i-find-the-jwks-uri-for-azure-ad) but using the specific appId doesnt seem to change anything. Maybe something that is missing in our app configs in Azure. I'll read some more and get back if I find something else. |
Beta Was this translation helpful? Give feedback.
-
I think I have something that could be related here : AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#609
It's very likely a bad understanding on my part, I should use custom api scope instead of the graph one. |
Beta Was this translation helpful? Give feedback.
-
Yes. Looks ok (and I do understand why now). I did try declaring the api scope yesterday, but was missing some understanding. So I have to declare scope that will be related to the ressource server and then define use this scope when getting the token. I was able to get postive validation and access to the ressource. Sorry for the false error! |
Beta Was this translation helpful? Give feedback.
Yes. Looks ok (and I do understand why now). I did try declaring the api scope yesterday, but was missing some understanding.
So I have to declare scope that will be related to the ressource server and then define use this scope when getting the token. I was able to get postive validation and access to the ressource.
Sorry for the false error!