https://github.com/fillmore-labs/login-sample
Sample OAuth login with a knative service
https://github.com/fillmore-labs/login-sample
knative knative-serving kustomize oauth2
Last synced: 5 months ago
JSON representation
Sample OAuth login with a knative service
- Host: GitHub
- URL: https://github.com/fillmore-labs/login-sample
- Owner: fillmore-labs
- License: apache-2.0
- Created: 2023-05-10T07:55:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2026-01-10T06:45:06.000Z (6 months ago)
- Last Synced: 2026-01-11T01:55:51.065Z (6 months ago)
- Topics: knative, knative-serving, kustomize, oauth2
- Language: Go
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= OAuth Login Sample
:Author: Oliver Eikemeier
:Email:
:Date: 2023-05
:Revision: v0.1
:toc: macro
image:https://badge.buildkite.com/07b78f5bce141778254e21bac50edb376be3742c0da6b97b58.svg?branch=main[title="Buildkite build status",link=https://buildkite.com/fillmore-labs/login-sample]
toc::[]
== Purpose
A sample knative service to demonstrate logging in via an OAuth provider.
== Prerequisites
You will need:
- A Kubernetes cluster with Knative installed. See
"`https://knative.dev/docs/install/yaml-install/serving/install-serving-with-yaml/[Installing Knative Serving using YAML files]`".
- An OAuth provider (i.e. https://auth0.com/signup[Auth0]).
- A container registry where your cluster can pull from (i.e. https://hub.docker.com[Docker Hub]).
- https://go.dev[Go] to compile the program.
- https://ko.build[Ko] to build containers.
- https://github.com/mozilla/sops[sops] for secret handling.
== Running
=== Locally
[source,shell]
----
./run.sh
----
=== Production
[source,shell]
----
./deploy.sh
----
== Developing
This code is based on https://github.com/auth0-samples/auth0-golang-web-app[Auth0 - Go Web App].
== References
- https://www.oauth.com/oauth2-servers/server-side-apps/[Server-Side Apps]
- https://www.ietf.org/archive/id/draft-ietf-oauth-security-topics-22.html[OAuth 2.0 Security Best Current Practice]