Use a short-time cookie to remember where to callback to

This commit is contained in:
lukeIam 2023-09-14 18:49:19 +01:00
parent 405c954b65
commit af4c35069b
5 changed files with 2212 additions and 14 deletions

View file

@ -39,10 +39,10 @@
</form>
<hr />
<div class="w-full flex py-3">
<a href="http://localhost:3333/auth/google">
<a :href="`http://localhost:3333/auth/google?callback=${currentUrl}`">
<ui-btn color="primary" class="leading-none">Login with Google</ui-btn>
</a>
<a href="http://localhost:3333/auth/openid">
<a :href="`http://localhost:3333/auth/openid?callback=${currentUrl}`">
<ui-btn color="primary" class="leading-none">Login with OpenId</ui-btn>
</a>
</div>
@ -69,7 +69,8 @@ export default {
},
confirmPassword: '',
ConfigPath: '',
MetadataPath: ''
MetadataPath: '',
currentUrl: location.toString()
}
},
watch: {