What is the difference between Google OAuth authorization URLs
up vote
1
down vote
favorite
Question: What is the difference between the following OAuth 2.0 authorization URLs:
In various documents example I see reference to this authorization URL:
https://accounts.google.com/o/oauth2/auth
In other documents example I see reference to this authorization URL:
https://accounts.google.com/o/oauth2/v2/auth
These URLs are used for code like this (Python):
authorization_base_url
is one of the above URLs.
authorization_url, state = gcp.authorization_url(
authorization_base_url,
access_type="offline",
prompt="select_account",
include_granted_scopes='true')
I am in the process of debugging another Google OAuth 2.0 Refresh Token problem and I am trying to clarify the exact solution link. I am seeing behaviour that does not match documentation.
oauth-2.0 google-cloud-platform google-oauth google-openid
add a comment |
up vote
1
down vote
favorite
Question: What is the difference between the following OAuth 2.0 authorization URLs:
In various documents example I see reference to this authorization URL:
https://accounts.google.com/o/oauth2/auth
In other documents example I see reference to this authorization URL:
https://accounts.google.com/o/oauth2/v2/auth
These URLs are used for code like this (Python):
authorization_base_url
is one of the above URLs.
authorization_url, state = gcp.authorization_url(
authorization_base_url,
access_type="offline",
prompt="select_account",
include_granted_scopes='true')
I am in the process of debugging another Google OAuth 2.0 Refresh Token problem and I am trying to clarify the exact solution link. I am seeing behaviour that does not match documentation.
oauth-2.0 google-cloud-platform google-oauth google-openid
If you want the most updated one you should check accounts.google.com/.well-known/openid-configuration however. The one in that does not work with all the client libraries in my experience. I sent an email off to the Google Oauth team with luck they will respond to your question.
– DaImTo
Nov 19 at 8:39
@DaImTo - Thank you. Also mention to the Google team that they should addhttps://www.googleapis.com/oauth2/v3/tokeninfo
toopenid-configuration
. I am curious why that endpoint is left out of that document.
– John Hanley
Nov 19 at 14:42
I emailed them about this a few months ago when the added the one thats in the discovery doc now. I have yet to get a concrete answer back
– DaImTo
Nov 19 at 14:58
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Question: What is the difference between the following OAuth 2.0 authorization URLs:
In various documents example I see reference to this authorization URL:
https://accounts.google.com/o/oauth2/auth
In other documents example I see reference to this authorization URL:
https://accounts.google.com/o/oauth2/v2/auth
These URLs are used for code like this (Python):
authorization_base_url
is one of the above URLs.
authorization_url, state = gcp.authorization_url(
authorization_base_url,
access_type="offline",
prompt="select_account",
include_granted_scopes='true')
I am in the process of debugging another Google OAuth 2.0 Refresh Token problem and I am trying to clarify the exact solution link. I am seeing behaviour that does not match documentation.
oauth-2.0 google-cloud-platform google-oauth google-openid
Question: What is the difference between the following OAuth 2.0 authorization URLs:
In various documents example I see reference to this authorization URL:
https://accounts.google.com/o/oauth2/auth
In other documents example I see reference to this authorization URL:
https://accounts.google.com/o/oauth2/v2/auth
These URLs are used for code like this (Python):
authorization_base_url
is one of the above URLs.
authorization_url, state = gcp.authorization_url(
authorization_base_url,
access_type="offline",
prompt="select_account",
include_granted_scopes='true')
I am in the process of debugging another Google OAuth 2.0 Refresh Token problem and I am trying to clarify the exact solution link. I am seeing behaviour that does not match documentation.
oauth-2.0 google-cloud-platform google-oauth google-openid
oauth-2.0 google-cloud-platform google-oauth google-openid
asked Nov 19 at 7:42
John Hanley
11.4k2527
11.4k2527
If you want the most updated one you should check accounts.google.com/.well-known/openid-configuration however. The one in that does not work with all the client libraries in my experience. I sent an email off to the Google Oauth team with luck they will respond to your question.
– DaImTo
Nov 19 at 8:39
@DaImTo - Thank you. Also mention to the Google team that they should addhttps://www.googleapis.com/oauth2/v3/tokeninfo
toopenid-configuration
. I am curious why that endpoint is left out of that document.
– John Hanley
Nov 19 at 14:42
I emailed them about this a few months ago when the added the one thats in the discovery doc now. I have yet to get a concrete answer back
– DaImTo
Nov 19 at 14:58
add a comment |
If you want the most updated one you should check accounts.google.com/.well-known/openid-configuration however. The one in that does not work with all the client libraries in my experience. I sent an email off to the Google Oauth team with luck they will respond to your question.
– DaImTo
Nov 19 at 8:39
@DaImTo - Thank you. Also mention to the Google team that they should addhttps://www.googleapis.com/oauth2/v3/tokeninfo
toopenid-configuration
. I am curious why that endpoint is left out of that document.
– John Hanley
Nov 19 at 14:42
I emailed them about this a few months ago when the added the one thats in the discovery doc now. I have yet to get a concrete answer back
– DaImTo
Nov 19 at 14:58
If you want the most updated one you should check accounts.google.com/.well-known/openid-configuration however. The one in that does not work with all the client libraries in my experience. I sent an email off to the Google Oauth team with luck they will respond to your question.
– DaImTo
Nov 19 at 8:39
If you want the most updated one you should check accounts.google.com/.well-known/openid-configuration however. The one in that does not work with all the client libraries in my experience. I sent an email off to the Google Oauth team with luck they will respond to your question.
– DaImTo
Nov 19 at 8:39
@DaImTo - Thank you. Also mention to the Google team that they should add
https://www.googleapis.com/oauth2/v3/tokeninfo
to openid-configuration
. I am curious why that endpoint is left out of that document.– John Hanley
Nov 19 at 14:42
@DaImTo - Thank you. Also mention to the Google team that they should add
https://www.googleapis.com/oauth2/v3/tokeninfo
to openid-configuration
. I am curious why that endpoint is left out of that document.– John Hanley
Nov 19 at 14:42
I emailed them about this a few months ago when the added the one thats in the discovery doc now. I have yet to get a concrete answer back
– DaImTo
Nov 19 at 14:58
I emailed them about this a few months ago when the added the one thats in the discovery doc now. I have yet to get a concrete answer back
– DaImTo
Nov 19 at 14:58
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
There's no documentation of the differences but in general they are different versions of the same endpoint.
A newer version may introduce improved or changed behavior though protocol-wise and interoperability-wise there should be no difference to the consumer. They're all OAuth 2.0/OIDC compliant but within the spec there are different optional behaviours that may be implemented.
As an example of that: when an error occurs on the Google side, Google may decide to stop the flow and show this error to the user, or alternatively return an error to the Client as OAuth 2.0 allows you to do. Both are valid behaviors and different versions of the Authorization endpoint may implement a different flavor.
Thank you. It is the exact behaviour that I am having trouble with. In the other question that I referenced, I am receiving a Refresh Token for my implementation in localhost mode. When I deployed to a public server, I stopped receiving Refresh Tokens. I am now looking for details to figure this out.
– John Hanley
Nov 19 at 14:38
I think that's two questions
– Hans Z.
Nov 19 at 15:02
I don't understand what your comment means.
– John Hanley
Nov 19 at 15:04
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
There's no documentation of the differences but in general they are different versions of the same endpoint.
A newer version may introduce improved or changed behavior though protocol-wise and interoperability-wise there should be no difference to the consumer. They're all OAuth 2.0/OIDC compliant but within the spec there are different optional behaviours that may be implemented.
As an example of that: when an error occurs on the Google side, Google may decide to stop the flow and show this error to the user, or alternatively return an error to the Client as OAuth 2.0 allows you to do. Both are valid behaviors and different versions of the Authorization endpoint may implement a different flavor.
Thank you. It is the exact behaviour that I am having trouble with. In the other question that I referenced, I am receiving a Refresh Token for my implementation in localhost mode. When I deployed to a public server, I stopped receiving Refresh Tokens. I am now looking for details to figure this out.
– John Hanley
Nov 19 at 14:38
I think that's two questions
– Hans Z.
Nov 19 at 15:02
I don't understand what your comment means.
– John Hanley
Nov 19 at 15:04
add a comment |
up vote
0
down vote
There's no documentation of the differences but in general they are different versions of the same endpoint.
A newer version may introduce improved or changed behavior though protocol-wise and interoperability-wise there should be no difference to the consumer. They're all OAuth 2.0/OIDC compliant but within the spec there are different optional behaviours that may be implemented.
As an example of that: when an error occurs on the Google side, Google may decide to stop the flow and show this error to the user, or alternatively return an error to the Client as OAuth 2.0 allows you to do. Both are valid behaviors and different versions of the Authorization endpoint may implement a different flavor.
Thank you. It is the exact behaviour that I am having trouble with. In the other question that I referenced, I am receiving a Refresh Token for my implementation in localhost mode. When I deployed to a public server, I stopped receiving Refresh Tokens. I am now looking for details to figure this out.
– John Hanley
Nov 19 at 14:38
I think that's two questions
– Hans Z.
Nov 19 at 15:02
I don't understand what your comment means.
– John Hanley
Nov 19 at 15:04
add a comment |
up vote
0
down vote
up vote
0
down vote
There's no documentation of the differences but in general they are different versions of the same endpoint.
A newer version may introduce improved or changed behavior though protocol-wise and interoperability-wise there should be no difference to the consumer. They're all OAuth 2.0/OIDC compliant but within the spec there are different optional behaviours that may be implemented.
As an example of that: when an error occurs on the Google side, Google may decide to stop the flow and show this error to the user, or alternatively return an error to the Client as OAuth 2.0 allows you to do. Both are valid behaviors and different versions of the Authorization endpoint may implement a different flavor.
There's no documentation of the differences but in general they are different versions of the same endpoint.
A newer version may introduce improved or changed behavior though protocol-wise and interoperability-wise there should be no difference to the consumer. They're all OAuth 2.0/OIDC compliant but within the spec there are different optional behaviours that may be implemented.
As an example of that: when an error occurs on the Google side, Google may decide to stop the flow and show this error to the user, or alternatively return an error to the Client as OAuth 2.0 allows you to do. Both are valid behaviors and different versions of the Authorization endpoint may implement a different flavor.
answered Nov 19 at 9:44
Hans Z.
27.4k75280
27.4k75280
Thank you. It is the exact behaviour that I am having trouble with. In the other question that I referenced, I am receiving a Refresh Token for my implementation in localhost mode. When I deployed to a public server, I stopped receiving Refresh Tokens. I am now looking for details to figure this out.
– John Hanley
Nov 19 at 14:38
I think that's two questions
– Hans Z.
Nov 19 at 15:02
I don't understand what your comment means.
– John Hanley
Nov 19 at 15:04
add a comment |
Thank you. It is the exact behaviour that I am having trouble with. In the other question that I referenced, I am receiving a Refresh Token for my implementation in localhost mode. When I deployed to a public server, I stopped receiving Refresh Tokens. I am now looking for details to figure this out.
– John Hanley
Nov 19 at 14:38
I think that's two questions
– Hans Z.
Nov 19 at 15:02
I don't understand what your comment means.
– John Hanley
Nov 19 at 15:04
Thank you. It is the exact behaviour that I am having trouble with. In the other question that I referenced, I am receiving a Refresh Token for my implementation in localhost mode. When I deployed to a public server, I stopped receiving Refresh Tokens. I am now looking for details to figure this out.
– John Hanley
Nov 19 at 14:38
Thank you. It is the exact behaviour that I am having trouble with. In the other question that I referenced, I am receiving a Refresh Token for my implementation in localhost mode. When I deployed to a public server, I stopped receiving Refresh Tokens. I am now looking for details to figure this out.
– John Hanley
Nov 19 at 14:38
I think that's two questions
– Hans Z.
Nov 19 at 15:02
I think that's two questions
– Hans Z.
Nov 19 at 15:02
I don't understand what your comment means.
– John Hanley
Nov 19 at 15:04
I don't understand what your comment means.
– John Hanley
Nov 19 at 15:04
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53370265%2fwhat-is-the-difference-between-google-oauth-authorization-urls%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If you want the most updated one you should check accounts.google.com/.well-known/openid-configuration however. The one in that does not work with all the client libraries in my experience. I sent an email off to the Google Oauth team with luck they will respond to your question.
– DaImTo
Nov 19 at 8:39
@DaImTo - Thank you. Also mention to the Google team that they should add
https://www.googleapis.com/oauth2/v3/tokeninfo
toopenid-configuration
. I am curious why that endpoint is left out of that document.– John Hanley
Nov 19 at 14:42
I emailed them about this a few months ago when the added the one thats in the discovery doc now. I have yet to get a concrete answer back
– DaImTo
Nov 19 at 14:58