Giter Site home page Giter Site logo

OAuth UI Support about swagger-ui HOT 3 CLOSED

jensoleg avatar jensoleg commented on July 2, 2024
OAuth UI Support

from swagger-ui.

Comments (3)

jensoleg avatar jensoleg commented on July 2, 2024

Hi - I will try to fix the Oauth feature soon as it is in the codebase as much as possible. Later on maybe investigate if it can be put in the global api-key/token box.

from swagger-ui.

jensoleg avatar jensoleg commented on July 2, 2024

@dmyers I have updated the repro with a working Oauth. I have only tested it with the swagger pet store example. Didn't succed to access your api. The Auth0 implementation is different as you can both select scopes globally and on each operation. This solution is as close to the original swagger as i could get it for now. Please notice that the OAUTH button changes color indicating full cope fullfilment with green and partial with orange.

Other changes : API info is placed in the sidebar at bottom. The schemes are prettified. The oauth token is populated to the token field in the sidebar when authorized successfully.

Please notice that I have made changes to the swagger-oauth lib file and the client.js file. The client file is pulled from my own github repository. If you want to go on you should clone this to your own repo and make changes to the package.json file.

Check out changes here

from swagger-ui.

dmyers avatar dmyers commented on July 2, 2024

The schemes look amazing! Yeah those are good points about the scope. The OAuth works really well now too. This thing is really getting solid.

from swagger-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.