Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Social Authentication , Google , unable to get Refresh token

m_yasiraliFeb 4 2020

Objective: After google authentication , to get refresh_token, to send email after the access_token expires.

I am using the social authentication for google. So far, I have been able to get the the access token in Post Authentication Procedure or  in an After authentication Application process using :

      :APP_GMAIL_TOKEN := apex_web_service.oauth_get_last_token;

OR    :APP_GMAIL_TOKEN :=  apex_json.get_varchar2( p_path => 'access_token' ) ;

I am using this access_token to send email. However, the access_token expires after some time.

I want to get a refresh_token. or some other way to keep the user access token to last for some time.

Even with Authentication URI Parameters:

access_type=offline&prompt=consent

It does not send the refresh token.

@"thatJeffSmith-Oracle"

How can I get the refresh token?

Comments
Post Details
Added on Feb 4 2020
1 comment
338 views