We've implemented a customized oauth2 security frame in order to protect 
our API. We've added some extra parameters which have to travel with 
authorization access code request.

How could I set this on swagger?

By now:


swagger.securityDefinition("authz_oauth", 
              new OAuth2Definition()
                .accessCode("http://guest1:8080/authz/authorize";, 
"http://guest1:8080/authz/token";)
                .scope("read:reftokens", "read reference tokens")
                .scope("write:reftokens", "modify and delete reference 
tokens")
            );



-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to