Skip to content

Commit

Permalink
Update the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiran committed Oct 19, 2022
1 parent 4f79d29 commit 9f1b46b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 35 deletions.
10 changes: 0 additions & 10 deletions laravel-enterprise-sso/resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
This is an example web app that demonstrate how to use Enterprise SSO
with Laravel Framework.
</p>
<p class="text-gray-600">
You can use
<a
href="https://mocksaml.com/"
class="font-medium underline underline-offset-2"
>
Mock SAML
</a>
a free SAML 2.0 Identity Provider to test the SAML SSO integration.
</p>
<ul class="flex flex-row space-x-6">
<li>
<a
Expand Down
47 changes: 22 additions & 25 deletions laravel-enterprise-sso/resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,30 @@
<header>
<nav class="border-gray-200 px-4 py-4 shadow">
<div class="max-w-7xl mx-auto">
<ul class="flex gap-4">
<li>
<a href="/" class="font-normal text-gray-900">Home</a>
</li>
<li>
<a href="/settings" class="font-normal text-gray-900">SAML SSO</a>
</li>

@guest
<li>
<a href="/sso" class="font-normal text-gray-900">Login</a>
</li>
@endguest

@auth
<li>
<form method="POST" action="{{ route('logout') }}">
@csrf
<a href={{ route('logout') }} class="font-normal text-gray-900" onclick="event.preventDefault(); this.closest('form').submit();">Log Out</a>
</form>
</li>
</form>
@endauth

<ul class="flex gap-4">
<li>
<a href="/" class="font-normal text-gray-900">Home</a>
</li>
<li>
<a href="/profile" class="font-normal text-gray-900">Profile</a>
<a href="/settings" class="font-normal text-gray-900">Setup SAML SSO</a>
</li>
@guest
<li>
<a href="/sso" class="font-normal text-gray-900">Login</a>
</li>
@endguest
@auth
<li>
<a href="/profile" class="font-normal text-gray-900">Profile</a>
</li>
<li>
<form method="POST" action="{{ route('logout') }}">
@csrf
<a href={{ route('logout') }} class="font-normal text-gray-900" onclick="event.preventDefault(); this.closest('form').submit();">Log Out</a>
</form>
</li>
</form>
@endauth
</ul>
</div>
</nav>
Expand Down
10 changes: 10 additions & 0 deletions laravel-enterprise-sso/resources/views/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ class="px-4 py-2 w-full border border-transparent rounded text-sm font-medium te
</button>
</form>
</div>
<p class="mt-5 text-sm text-gray-600">
You can use
<a
href="https://mocksaml.com/"
class="font-medium underline underline-offset-2"
>
Mock SAML
</a>
a free SAML 2.0 Identity Provider to test the SAML SSO integration.
</p>
</div>
</div>
@endsection

0 comments on commit 9f1b46b

Please sign in to comment.