-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable addition OAuth 2.0 grant flows
- Loading branch information
1 parent
5719878
commit a476695
Showing
9 changed files
with
169 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,8 @@ input.warning { | |
outline: 0; | ||
} | ||
|
||
.required { | ||
.required:before { | ||
content: "* "; | ||
color: @warning; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,36 @@ | ||
<fieldset class="labelled-inline" role="oauth2"> | ||
<div class="control-group"> | ||
<label for="clientId">Client ID</label> | ||
<input type="text" name="clientId" ng-model='credentials.clientId'/> | ||
<label for="grantType">Grant Type</label> | ||
<select | ||
name="grantType" | ||
ng-model="credentials.grantType" | ||
ng-options="grant.name for grant in grantTypes"> | ||
</select> | ||
</div> | ||
|
||
<div class="control-group"> | ||
<label for="clientSecret">Client Secret</label> | ||
<input type="password" name="clientSecret" ng-model='credentials.clientSecret'/> | ||
<label for="clientId" class="required">Client ID</label> | ||
|
||
<input type="text" name="clientId" ng-model="credentials.clientId" required> | ||
</div> | ||
|
||
<div class="control-group" ng-if="hasClientSecret"> | ||
<label for="clientSecret" ng-class="{ required: requiresClientSecret }"> | ||
Client Secret | ||
</label> | ||
|
||
<input type="password" name="clientSecret" ng-model="credentials.clientSecret" ng-required="requiresClientSecret"> | ||
</div> | ||
|
||
<div class="control-group" ng-if="hasOwnerCredentials"> | ||
<label for="username" class="required">Username</label> | ||
|
||
<input type="text" name="username" ng-model="credentials.username" required> | ||
</div> | ||
|
||
<div class="control-group" ng-if="hasOwnerCredentials"> | ||
<label for="password" class="required">Password</label> | ||
|
||
<input type="password" name="password" ng-model="credentials.password" required> | ||
</div> | ||
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters