Comments (5)
This also requires the ability to turn off the validation and use a custom one when multitenant (/common/ endpoint) application scenario is used
Looks like this isn't the case and it is causing v2.0 usage to break for me with my implementation.
It is throwing an invalid issuer error since https://sts.windows.net/9188040d-6c67-4c5b-b112-36a304b66dad/
does not match https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0
which I assume is caused by the usage of the common endpoints? I don't see a way to disable this check aswell
from oauth2-azure.
I will have to check this and get back to you. So you are using regular AAD created app with v2.0 endpoints, right?
from oauth2-azure.
Yeah so I basically use the options described in the readme
$provider->pathAuthorize = "/oauth2/v2.0/authorize";
$provider->pathToken = "/oauth2/v2.0/token";
$provider->scope = ["openid"];
from oauth2-azure.
Ah I think I found it, there is an API call to 'https://login.windows.net/' . $tenant . '/.well-known/openid-configuration'
to get the issuer. But if I check my endpoints in my azure portal it shows
https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration
So that might be the reason why?
EDIT: Yup just modified the files locally to use v2.0 and that has fixed the issue for me. So adding an option to modify the openid-configuration endpoint for example could fix this?
from oauth2-azure.
Almost forgot, I also modified the https://login.windows.net/common/discovery/keys
url to use the v2.0 keys since Firebase JWT was giving me an error for a missing KID value.
from oauth2-azure.
Related Issues (20)
- B2C - Issue when Getting JWT Verification Keys HOT 1
- Class "TheNetworg\OAuth2\Provider\Azure" not found HOT 1
- The Code_Verifier does not match the code_challenge supplied in the authorization request HOT 3
- Azure Graph is being deprecated in June 2023. Please use Microsoft Graph. HOT 3
- Client_credentials grant
- Firebase PHP-JWT key/algorithm type confusion HOT 1
- Question: what needs to be reachable through firewall?
- Not possible to set default algorithm HOT 2
- Uncaught Error: Firebase\JWT\JWT::decode(): Argument #3 ($headers) cannot be passed by reference HOT 16
- README sample incomplete
- Exception "The client_id / audience is invalid!" when using accesstoken HOT 8
- openssl_sign(): Supplied key param cannot be coerced into a private key
- return in sample code
- Sample code loops HOT 4
- Azure AD B2C issue
- Fatal error in getDefaultScopes()
- Micorsoft Entra ID and msal-browser/2.37.1 error validation access token HOT 2
- Outdated CHANGELOG.md HOT 2
- Microsoft Graph suddenly not returning user profile attributes HOT 2
- V2 validateTokenClaims and AUD Prefix HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth2-azure.