ory-kratos-session-catcher

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 4 Imported by: 0

README

Ory Kratos Session Catcher

Unfortunately with Ory Kratos alone it is currently impossible to offer authentication via one of the social login providers (Google, Apple, ..) for non-browser API apps like mobile apps. The browser API cannot be used, because the session is sent as a HttpOnly cookie to the client. It is hard or impossible to extract the session from a mobile webview.

This service can be called after a session is returned from Kratos to a browser endpoint. It will read the cookie and redirects the user back to a non-browser app via deep linking.

Usage

Use the Docker image pushed to the Github Registry:

docker pull ghcr.io/openscript-ch/ory-kratos-session-catcher:latest
Environment variables
Name Description Default
PORT Listning port of this service for HTTP requests 3000
REDIRECT_PATH Path where the user is redirected to -
REDIRECT_SESSION_PARAM_KEY Key which is used to attach the session token, when the user is redirected ory_kratos_session
SESSION_COOKIE_KEY Cookie name of the session token, which is sent to this service ory_kratos_session

State

A solution without this service seems to be planed. As soon as there is a solution integrated into Kratos this project becomes obsolete.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL