Skip to main content
Leahn u/Leahn avatar

Leahn

u/Leahn

Feed options
Hot
New
Top
View
Card
Compact

Stone portal.


Dude, join a kingdom and let them either guide or carry you. Whatever you do in the game before T9 is irrelevant, and even T9 is only partially relevant. It's an online game. Don't play solo.


There was a demo at Gamescon.


I can debug, dude. The claim is empty.


So, basically what I am doing? Creating it client side and reapplying every time?


SaveToken does nothing. It stores the token on the request so the server can send it back on every response. But I already have the token so this is not needed. It's no longer the standard to use it and the most recent articles say not to use it.

And I am adding the Authorization Header. That won't create a Identity Principal by itself.


It's a microservice architecture. A request is an get or post request to an API endpoint. Token is an access token, according to OpenID standards.


I'm creating a SSO Middleware that intercepts calls to [Authorize] endpoints.

If the user is not Authorized (Context.User.Identity.IsAuthorized is false), he's forcefully redirected (Response.Redirect, Status Code 302), to another server /auth endpoint which works as a universal login (as in, both desktop and mobile and all apps). This other server is not under my control or purview. It returns an auth code, which I then exchange for an access token and refresh token, according to OpenID standards.

I am not using OpenID Middleware. I'm using JWT Bearer. I was kind of ordered to do so.