-
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 4a56bd5
Showing
7 changed files
with
161 additions
and
27 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 |
---|---|---|
@@ -1,11 +1,37 @@ | ||
<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"><span class="required">*</span> Client ID</label> | ||
|
||
<input type="text" name="clientId" ng-model="credentials.clientId" required> | ||
</div> | ||
|
||
<div class="control-group" ng-if="credentials.grantType.type !== 'token'"> | ||
<label for="clientSecret"> | ||
<span class="required" ng-show="credentials.grantType.type !== 'owner'">*</span> | ||
Client Secret | ||
</label> | ||
|
||
<input type="password" name="clientSecret" ng-model="credentials.clientSecret" ng-required="credentials.grantType.type !== 'owner'"> | ||
</div> | ||
|
||
<div class="control-group" ng-if="credentials.grantType.type === 'owner'"> | ||
<label for="username"><span class="required">*</span> Username</label> | ||
|
||
<input type="text" name="username" ng-model="credentials.username" required> | ||
</div> | ||
|
||
<div class="control-group" ng-if="credentials.grantType.type === 'owner'"> | ||
<label for="password"><span class="required">*</span> 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