Single sign-on (SSO) Service
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1003 B

extends blocks/layout.pug
append var
if(session && session.user && session.user.loggedInFull)
- var breadcrumb = {0: {"name": cfg.app.name, "href": "/"}, 1: {"name": "Authorization", "active": true}};
- var title = "authorize App";
append content
if(session && session.user && session.user.loggedInFull)
.uk-container.uk-margin-bottom
h1 Authorize App
each app in apps
if(app._id == appRequest.appId)
div
.uk-card.uk-card-default
.uk-card-header.uk-card-primary
h3.uk-card-title "#{app.name}" needs authorization to login with your credentials
.uk-card-body
p= app.description
p
span Redirecting to:
br
i= app.access
.uk-card-footer.uk-flex.uk-flex-around
button(onclick="cancelRequest()").uk-button.uk-button-default.uk-button-default Cancel
a.uk-button.uk-button-default.uk-button-primary(href="/api/redirect?id="+appRequest.appId) Authorize request
else
include blocks/login.pug