I am currently doing some R&D work for some future games me and some friends want to develop, and one that was for sure is that we wanted users to easily access games with their own user accounts from our studio, which is a reason why we wanted to implement an OpenID connect provider to our games through PlayFab.
Since my own knowledge comes from cloud providers, I chose to add Azure AD B2C as the OpenID provider, which on the Unity side (the engine I'm using) works fine, I'm able to open a webpage inside the app, let the user login, and return with the access token. Now when I'm trying to execute the login with open id (I'll follow with a code example), I get the error that it can't get the configuration as required. Which, if you check the URL they used, is understandably incorrect.
My login code:
LoginWithOpenIdConnectRequest req = new LoginWithOpenIdConnectRequest { ConnectionId = "Azure B2C", // <-- the name of my OpenID configuration TitleId = "my title ID", IdToken = "my id token" }; PlayFabClientAPI.LoginWithOpenIdConnect(req, result => { Debug.Log(result.PlayFabId); }, error => { Debug.Log(error.ErrorMessage); });
Simple login code that does not really do anything weird here. On the PlayFab admin portal however... what I found out is that when you enter the Issuer (a.k.a. where the configuration comes from) the URL gets cut off, which before it's cut/altered works, but after is an unknown resource...
"https://{TENANT}.b2clogin.com/{TENANT}.onmicrosoft.com/B2C_1_{POLICY}/v2.0/.well-known/openid-configuration" becomes "https://{TENANT}.b2clogin.com/{ID}/v2.0/"
One thing to note, is that the original URL is a Azure AD B2C OpenID Connect-doc with metadata, whilst the one it saves as in the end is Azure AD OpenID Connect-doc with metadata.
Kinda stuck with this issue, some help would be amazing <3
Able to reply with more specifics if needed :) I just hope this sketches the problem.