refresh-token Questions

3

Solved

While testing the security of one of our product, a web application, using the REST API of Firebase we got surprised when we realised that refresh-tokens never expire in the V3 of the Firebase impl...
Cynde asked 19/5, 2017 at 13:4

3

Solved

I am implementing JWT in one of my node apps. I am wondering, if there is any definite format/ structure in which a refresh token should be generated? By definite format I mean whether a refresh ...
Gee asked 14/5, 2019 at 14:41

5

Solved

Following this procedure: https://learn.microsoft.com/en-us/graph/auth-v2-user I'm trying to get a refresh token from this microsoft end point: https://login.microsoftonline.com/{tenantId}/oauth2...

3

I have an Api and a mobile client. I am using refresh tokens as following: User provides credentials, Api returns back an access token and a refresh token. The refresh token is then saved with its...
Punctual asked 18/11, 2020 at 23:50

22

Solved

Section 4.2 of the draft OAuth 2.0 protocol indicates that an authorization server can return both an access_token (which is used to authenticate oneself with a resource) as well as a refresh_token...
Rubie asked 15/8, 2010 at 15:25

2

Solved

I'm trying to implement token refresh feature in angular 12 and .net core 5. this is my JWT service registration: startup.cs: services.AddAuthentication(options => { options.DefaultAuthenticat...
Kwangchowan asked 11/5, 2022 at 19:15

4

I'm trying to refresh the oauth2 token using ClientOAuth2.Token.refresh() but keep getting the error sometimes: {"error":"invalid_grant","error_description":"Session not active"} This is the reque...
Livvi asked 10/10, 2019 at 9:48

1

Solved

I just stumbled upon an issue where I started sending too parallel refresh token requests to the backend server I built, which caused concurrency issues where there is a race condition in which all...
Morpheme asked 29/9, 2023 at 16:22

4

Solved

I am designing a new web application which requires an oAuth2 implementation. I've been reading up on oAuth2 Authorization Code flow with PKCE. That makes sense, it ensures that de client who is in...

4

Solved

Spring Boot 2 with Spring Security 5 can be configured to use an openID connect ID provider for authentication. I managed to setup up my project just by configuring Spring Security - that works fin...
Indecipherable asked 10/8, 2018 at 15:55

1

I want to refresh my access token when it gets expired. I have implemented Authenticator as shown below: @Singleton class TokenAuthenticator( val authService: Lazy<AuthService>, private val...

5

I was reading the documentation on the Auth0 site regarding Refresh Tokens and SPA, and they state that SPA's should not use Refresh Tokens as they cannot be securely stored in a browser, and inste...
Mvd asked 15/3, 2018 at 2:55

3

I have a policy that looks like this var retryPolicy = Policy .Handle<HttpRequestException>() .OrResult<HttpResponseMessage>(resp => resp.StatusCode == HttpStatusCode.Unauthorized)...
Sarver asked 21/1, 2020 at 2:20

2

Solved

I'm using Laravel 6.7 and attempting to use Passport for user authentication. I'm able to create an access token for the user when they register. Here is the code: $user = User::create($input); $...
Lavonia asked 13/12, 2019 at 22:8

5

When using the OAuth 2.0 JWT Refresh token implementation I came across the issue that it's really difficult to implement a solid Refresh Strategy on the Web Browser Client Side. Multiple Tabs can ...

5

I create a realtime connection via SignalR From client(angular 9) and server(asp.net core 3.1) and Authorize hub by JWT Token such as below code : private createConnection() { this.hubConnection...
Sailboat asked 3/6, 2020 at 8:56

1

I am going to implement JWT authentication for several independent services. There will be auth.example.com and service1.example.com, service2.example.com etc. My assumptions: JWT can be kept in c...

4

Solved

I have added AddOpenIdConnect to the ConfigureServices method of my ASP.NET Core 3.1 Razor application. It works great until the token expires, then I get 401 responses from my IDP. I have seen an...

4

Solved

In the last few days I've been reading on Authentication with refresh and access tokens, but this is one thing I can't find the answer to. Let's say an expired access token is sent. Should the back...
Apiarist asked 10/11, 2020 at 22:0

2

I have a set of APIs purely for my own app, so I just have a simple API to create access token, when user provided the email and password /api/access_token (return access_token when email and passw...
Dungeon asked 23/11, 2022 at 3:35

4

Solved

I'm making calls to an external API and want to deal with the event that a call returns an Unauthorized HttpResponseMessage. When this happens I want to refresh the access token and make the call a...
Baskin asked 28/1, 2017 at 13:0

4

I'm having some issues on requesting new refresh tokens in IdentityServer4. Sometime after authentication, I get an Unauthorized response from my API, ok, but when I try to request a new refresh to...
Starvation asked 19/7, 2017 at 18:2

2

Solved

I am trying to implement a catch for 401 responses and tried obtaining a refresh token based on Angular 4 Interceptor retry requests after token refresh. I was trying to implement the same thing, b...
Flournoy asked 7/12, 2017 at 23:23

2

I have a client in keycloak (7.0.0) with given configuration - highlighted option "enables support for 'Client Credentials Grant'": When I obtain a token for that client (POST /auth/real...
Hennahane asked 30/10, 2019 at 8:19

3

Solved

I know that (when using the authorization code "Authorization code" in OAuth), the lifetime of an access-token should be short but the lifetime of a refresh token can be long. So I decide...
Disinclination asked 13/3, 2019 at 9:42

© 2022 - 2024 — McMap. All rights reserved.