Forum Discussion

Ichigo's avatar
Ichigo
New Contributor
9 months ago

Support for Google Signin

Is there any way to use the Google sign-in button instead of the Authorize button on the OpenAPI specification file?

 
So after the successful signin,I want to set the header Authorization value as id_token in the request.


 

 

  • Hi Ichigo 

     

    No, the OpenAPI Specification (OAS) itself doesn't directly support integrating a Google Sign-in button or any specific social login provider. 
    OAS focuses on describing your API's functionality and how to interact with it.

    However, you can try other possibilities with Google Sign-in functionality alongside your OAS implementation

    Frontend Implementation:

    Use libraries like Google Sign-In JavaScript Library (https://developers.google.com/) to render a Google Sign-in button on your frontend.
    Upon successful sign-in, your frontend code retrieves the user's Google ID Token.

     

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!

    Warm regards

  • Humashankar's avatar
    Humashankar
    Champion Level 3

    Hi Ichigo 

     

    No, the OpenAPI Specification (OAS) itself doesn't directly support integrating a Google Sign-in button or any specific social login provider. 
    OAS focuses on describing your API's functionality and how to interact with it.

    However, you can try other possibilities with Google Sign-in functionality alongside your OAS implementation

    Frontend Implementation:

    Use libraries like Google Sign-In JavaScript Library (https://developers.google.com/) to render a Google Sign-in button on your frontend.
    Upon successful sign-in, your frontend code retrieves the user's Google ID Token.

     

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!

    Warm regards