config/ default first commit 3 years ago
templates/ authentication first commit 3 years ago
.gitignore add gitignore 3 years ago
Dockerfile first commit 3 years ago
Makefile first commit 3 years ago
README.md add readme 3 years ago
go.mod first commit 3 years ago
go.sum first commit 3 years ago
main.go first commit 3 years ago
README.md

Okta Oauth Web application

Getting Started

  1. Update the config/default/deployment.yaml to specify the following environment variables

    • CLIENT_ID : OKTA Oauth client ID
    • CLIENT_SECRET: OKTA Oauth client secert
    • ORG_URL: OKTA Developer orginazation URL (e.g. dev-xxxxxxxx.okta.com)
    • KUBE_CA : Kubernetes CA certificate.
    • KUBE_APISERVER: Kubernetes API server endpoint.
  2. Update the IMG argument value in Makefile to specify the docker image URL (e.g. "/okta-oauth:latest")

  3. Update the newName and newTag in config/default/kustomization.yaml to match the image URL specified in step 2.

How to build

  • Build: make build
  • Run: make run
  • Build docker image: make docker-build
  • Push docker image: make docker-push
  • Deploy this application to Kubernetes cluster: make deploy (Make sure the kubeconfig file is existed in ~/.kube/config)
  • Undeploy this application to Kubernetes cluster: make undeploy (Make sure the kubeconfig file is existed in ~/.kube/config)
  • CICD(all steps): make all

Demo URL

https://kubernetes.jerxie.com/demo/okta-oauth/authentication/login

  • Username: invalid.account@gmail.com
  • Password: Pa$$w0rd