mirror of
https://github.com/netzbegruenung/meteor-accounts-saml.git
synced 2024-05-14 17:36:06 +02:00
46 lines
1.2 KiB
HTML
46 lines
1.2 KiB
HTML
<head>
|
|
<title>Simple SAML Login with OpenAM</title>
|
|
</head>
|
|
|
|
<body>
|
|
{{>samlDemo}}
|
|
</body>
|
|
|
|
<template name="samlDemo">
|
|
|
|
|
|
|
|
{{>loginButtons}}
|
|
|
|
<br>
|
|
|
|
{{#unless currentUser}}
|
|
<a href="#" class="saml-login" data-provider="openidp">Log in with OpenIDP</a>
|
|
<a href="#" class="saml-login" data-provider="forgerock">Log in with OpenAM</a>
|
|
{{/unless}}
|
|
|
|
<hr>
|
|
|
|
{{#if currentUser}}
|
|
Hello, {{currentUser.username}}. <a href="#" class="saml-logout" data-provider="forgerock">Logout (OpenAM)</a>
|
|
<br/>
|
|
|
|
<a href="#" class="meteor-logout">Logout (Meteor)</a>
|
|
{{/if}}
|
|
<h2>Step 1</h2>
|
|
Create a password based account.
|
|
|
|
<h2>Step 2</h2>
|
|
Sign out / log out. You should see both the login buttons control 'Sign In' and the custom saml login link 'Log in with OpenIDP'
|
|
|
|
<h2>Step 3</h2>
|
|
Create OpenIDP account if you don't already have one with same email address as the password account. https://openidp.feide.no/
|
|
|
|
<h2>Step 4</h2>
|
|
Click the link 'Log in with OpenIDP'. In the pop up window, log in with your OpenIDP credentials.
|
|
|
|
<h2>Step 5</h2>
|
|
If all goes well, the popup should close by itself. You should now be logged in just as if you had typed in your username and password.
|
|
|
|
|
|
</template> |