Skip to content

OAuth2 Jinja Configuration

Compare
Choose a tag to compare
@dtkav dtkav released this 20 Jul 01:14
ce8ae37

This release adds a new jinja variable called initOAuth.

This allows the server to pass configuration to the initOAuth() call in swagger-ui. Kudos to @m-agel for the idea.

render_template(
    'index.j2',
    initOAuth={
        'clientId': 'my-swagger-ui',
        'usePkceWithAuthorizationCodeGrant': True,
    }
)