Merge pull request #55 from coreos-inc/oauthdeny

Fix OAuth redirect for denial action when generating for internal tokens
This commit is contained in:
Jake Moshenko 2015-06-05 14:00:16 -04:00
commit e09d84b3c8
5 changed files with 56 additions and 16 deletions

View file

@ -114,7 +114,7 @@
</table>
<a class="btn btn-success"
href="{{ Config.getUrl('/oauth/authorize?response_type=token&client_id=' + application.client_id + '&scope=' + getScopes(genScopes).join(',') + '&redirect_uri=display') }}"
href="{{ Config.getUrl('/oauth/authorize?response_type=token&client_id=' + application.client_id + '&scope=' + getScopes(genScopes).join(',') + '&redirect_uri=' + Config.getUrl(Config['LOCAL_OAUTH_HANDLER'])) }}"
ng-disabled="!getScopes(genScopes).length" target="_blank">
Generate Access Token
</a>