Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change hardcoded "api_key" #1087

Closed
ghost opened this issue Dec 8, 2015 · 7 comments
Closed

Change hardcoded "api_key" #1087

ghost opened this issue Dec 8, 2015 · 7 comments
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Dec 8, 2015

You have hardocded "api_key" param in addApiKeyAuthorization() in index.html of swagger-ui, but I need to set my own header-name for authentication and I have no possibility to do this

@dilipkrish dilipkrish added this to the 2.4.0 milestone Dec 8, 2015
@dilipkrish
Copy link
Member

Adventurous enough to help with a PR?

@the4yeast
Copy link

Is there any chance this might get released soon?

@dilipkrish
Copy link
Member

In about a week. Have a couple of bugs/ maintenance issues to address.

@the4yeast
Copy link

sounds great, thanks!

@srirajkondapuli
Copy link

Any Idea if the above issue has been resolved??

@mrsarm
Copy link

mrsarm commented Sep 7, 2016

It's so frustrating when some new feature is available but not documented like this case, close this issue without document it is like if the feature doesn't exist. I had to check the source code of the project to realize how to configure this.

Finally, for Spring Boot you can achieve this with something like:

    @Bean
    public SecurityConfiguration security() {
        return new springfox.documentation.swagger.web.SecurityConfiguration(
            null, null, null,
            "myapp-api",
            "access_token",
            ApiKeyVehicle.QUERY_PARAM,
            "access_token",
            null);
    }

@dilipkrish
Copy link
Member

Its totally available in the docs and the commit above shows it as well. What are you referring to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants