I am trying to use OIDC for auth.
When my Blazor WASM client-app (which runs in the browser) attempts to hit https://accounts.spotify.com/.well-known/openid-configuration the response fails because of CORS. The error is:
Access to XMLHttpRequest at 'https://accounts.spotify.com/.well-known/openid-configuration' from origin 'https://localhost:5001' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
If I paste that URL into the browser, success.
Also, I am unable to find Spotify's oidc documentation
Solved! Go to Solution.
We experiment and explore many different things, some make it into production, some don't. You happened to stumble on one of the things we are actively exploring but have not yet made any commitments to yet. Rest assured if/when we make it available we would announce it properly 🙂
I am beginning to believe that Spotify's oidc is not properly set up even beyond the CORS issue.
Hi there
Apologies for the long response time.
OpenID Connect is not supported, you will have to use OAuth. You can find all the information about what is supported here: https://developer.spotify.com/documentation/general/guides/authorization-guide/
We experiment and explore many different things, some make it into production, some don't. You happened to stumble on one of the things we are actively exploring but have not yet made any commitments to yet. Rest assured if/when we make it available we would announce it properly 🙂
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game…