You are not logged in. Please login at www.codechef.com to post your questions!

×

Codechef asks permissions on each login

Whenever my app logins a user using Codechef oAuth, code chef asks for permission every time even if the person has already given the permissions before. Is this the default behaviour or there is some error in my implementation ?

asked 08 Sep, 16:10

vaibhavthakkar's gravatar image

4★vaibhavthakkar
1
accept rate: 0%


@vaibhavthakkar, store access token once user authorises your app. The life time of an access token is one hour. You can use refresh tokens to get new access tokens after that.

link

answered 09 Sep, 02:56

shivangi_gupta's gravatar image

2★shivangi_gupta
1954
accept rate: 16%

But what if the user logs out, then when it logins again will the user be giving permissions again ?

(09 Sep, 05:15) vaibhavthakkar4★

Once you have user's access token and refresh token(not expired), it does not matter if user is logged in or not.

(10 Sep, 01:44) shivangi_gupta2★

Sorry, I think I didn't explain my question well. What I was to ask is let's say I have a web app which allows user to enter using Codechef oAuth, then the user gives the necessary permissions and is able to successfully enter the app, so now I have user's refresh token.

Now what if user logs out of my web app so I would have to delete all his cookies, now when next time user enters he will again enter through Codechef oAuth but why is Codechef again asking the permissions ? Because now I cannot use his refresh token without him passing through the Codechef oAuth process. Any suggestions ?

(10 Sep, 08:20) vaibhavthakkar4★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×213
×190
×115

question asked: 08 Sep, 16:10

question was seen: 813 times

last updated: 09 Sep, 02:56