openstackid/resources/views/extensions/oauth2.blade.php
smarcet b52c932636 IDP - User Management
* Added user registration process
* Added user password reset process
* Added user email verification proccess
* update token id to return custom claims
* update access token instrospection to return user custom claims
* Migrated to Doctrine ORM ( from eloquent)
* Added User CRUD
* Added User Groups CRUD
* Refactoring
* Bug Fixing
* added user registration oauth2 endpoint
  POST /api/v1/user-registration-requests

payload

* first_name ( required )
* last_name ( required)
* email ( required )
* country ( optional )

scope

user-registration ( private scope)

Change-Id: I36e8cd4473ccad734565051442e2c6033b204f27
2020-01-23 03:06:05 -03:00

54 lines
2.3 KiB
PHP

@if(count($requested_scopes)>0)
<label>
<b>The site has also requested some permissions for following OAuth2 Application</b>
</label>
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="row">
<div class="col-md-2">
<img src="{!!$app_logo!!}" border="0"/>
</div>
<div class="col-md-10">
<h2>{!!$app_name!!}&nbsp;<span class="glyphicon glyphicon-info-sign pointable" aria-hidden="true" data-content="Developer Email: <a href='mailto:{!!$dev_info_email!!}'>{!!$dev_info_email!!}</a>.<br> Clicking 'Accept' will redirect you to: <a href='{!!$website!!}' target='_blank'>{!!$website!!}</a>" title="Developer Info"></span></h2>
</div>
</div>
<legend>This app would like to:</legend>
<ul class="unstyled list-inline">
@foreach ($requested_scopes as $scope)
<li> {!!$scope->getShortDescription()!!}&nbsp;<span class="glyphicon glyphicon-info-sign pointable" aria-hidden="true" data-content="{!!$scope->getDescription()!!}" title="Scope Info"></span></li>
@endforeach
</ul>
<p class="privacy-policy">
** <b>{!!$app_name!!}</b> Application and <b>{!! Config::get('app.app_name') !!}</b> will use this information in accordance with their respective terms of service and privacy policies.
</p>
</div>
</div>
</div>
@endif
@section('scripts')
<script type="application/javascript">
$(document).ready(function() {
var hideAllPopovers = function() {
$('.icon-info-sign').each(function() {
$(this).popover('hide');
});
};
$('.icon-info-sign').popover({html:true});
$(':not(#anything)').on('click', function (e) {
$('.icon-info-sign').each(function () {
//the 'is' for buttons that trigger popups
//the 'has' for icons and other elements within a button that triggers a popup
if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
$(this).popover('hide');
return;
}
});
});
});
</script>
@append