Auth endpoint
The IndieAuth endpoint should be added, currently adding the unt tests
This commit is contained in:
parent
7ad5d56f1b
commit
5b2bfd5270
18 changed files with 1282 additions and 475 deletions
12
resources/views/indieauth/error.blade.php
Normal file
12
resources/views/indieauth/error.blade.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')IndieAuth « @stop
|
||||
|
||||
@section('content')
|
||||
<section class="indieauth">
|
||||
<h1>IndieAuth</h1>
|
||||
@foreach ($errors->all() as $message)
|
||||
<div class="error">{{ $message }}</div>
|
||||
@endforeach
|
||||
</section>
|
||||
@stop
|
39
resources/views/indieauth/start.blade.php
Normal file
39
resources/views/indieauth/start.blade.php
Normal file
|
@ -0,0 +1,39 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')IndieAuth « @stop
|
||||
|
||||
@section('content')
|
||||
<form class="indieauth" action="/auth/confirm" method="post">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="client_id" value="{{ $client_id }}">
|
||||
<input type="hidden" name="redirect_uri" value="{{ $redirect_uri }}">
|
||||
<input type="hidden" name="state" value="{{ $state }}">
|
||||
<input type="hidden" name="me" value="{{ $me }}">
|
||||
<input type="hidden" name="code_challenge" value="{{ $code_challenge }}">
|
||||
<input type="hidden" name="code_challenge_method" value="{{ $code_challenge_method }}">
|
||||
@if(!empty($scopes))
|
||||
@foreach($scopes as $scope)
|
||||
<input type="hidden" name="scope[]" value="{{ $scope }}">
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
<h1>IndieAuth</h1>
|
||||
@if(!empty($error))
|
||||
<div class="error">{{ $error }}</div>
|
||||
@endif
|
||||
|
||||
<p>You are attempting to log in with the client <code>{{ $client_id }}</code></p>
|
||||
<p>After approving the request you will be redirected to <code>{{ $redirect_uri }}</code></p>
|
||||
@if(!empty($scopes))
|
||||
<p>The client is requesting the following scopes:</p>
|
||||
<ul>
|
||||
@foreach($scopes as $scope)
|
||||
<li>{{ $scope }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
<button type="submit">Approve</button>
|
||||
</form>
|
||||
@stop
|
Loading…
Add table
Add a link
Reference in a new issue