swagger-api / swagger-api/swagger-ui

make oauth popup extensible to support firebase auth via plugin

Open
#7,698 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

https://securetoken.google.com/{MY_PROJECT}/.well-known/openid-configuration

returns this

{
    "issuer": "https://securetoken.google.com/{MY_PROJECT}",
    "jwks_uri": "https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com",
    "response_types_supported": [
        "id_token"
    ],
    "subject_types_supported": [
        "public"
    ],
    "id_token_signing_alg_values_supported": [
        "RS256"
    ]

}

this is not a full openid configuration that would support the standard oauth flow

to enable custom firebase specific integration

i'd like to add my firebase specifi plugin to integrate with swagger

but to make the possible I need to hook with +- this logic rather than opening the window popup managed by swagger

firebase.initializeApp({...myconfig})

const firestore = firebase.firestore()
const auth = firebase.auth()

const provider = new firebase.auth.GoogleAuthProvider()
auth.signInWithPopup(provider).then(result =>
   result.token -> pass this to swagger
})

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or specific entry points. Start by tracing Swagger UI's OAuth popup logic and its plugin extension points; done means a custom Firebase authentication plugin can control the popup flow and pass its token back to Swagger UI.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, javascript
Domain
authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.