cancel
Showing results for 
Search instead for 
Did you mean: 

Flask OAuth2 Server

Highlighted
Occasional Contributor

Flask OAuth2 Server

I am creating a REST API using Swagger based on the PetStore example.
I am using the Python-Flask Generated Server.
I need to use OAuth2 for authentication.
 
From what I undeerstand I need to:
1. Implement a user database.
2. Log in with a registered user and return an Access Token.
3. Use this token with any subsequent API calls to access resources.
 
I see examples where one uses e.g. FaceBook or Google to obtain the AccessToken but I want my server to handle everything.
 
Are there any examples of a python OAuth2 Server that works with Swagger?
When I test the online PetStore Editor: https://editor.swagger.io it directs me to this link:
http://petstore.swagger.io/oauth/login.jsp which says: "You can find the source code to the server" but the link is broken Smiley Sad

1 REPLY 1
Occasional Contributor

Re: Flask OAuth2 Server

Can anyone answer this? Or offer any help?

New Here?
Join us and watch the welcome video:
6 / 7 API Testing Mistakes Video