Skip to content

Commit

Permalink
chore: switch to id.pathwar.land
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Aug 14, 2019
1 parent 67e3274 commit 3de8f81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .prod/keycloak/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
environment:
# specific to prod
- PROXY_ADDRESS_FORWARDING=true
- VIRTUAL_HOST=sso.pathwar.land,auth.pathwar.land
- VIRTUAL_HOST=id.pathwar.land
# common with dev
- VIRTUAL_PORT=8080
- DB_VENDOR=MYSQL
Expand Down
2 changes: 1 addition & 1 deletion client/cmd_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (cmd *clientCommand) ParseFlags(flags *pflag.FlagSet) {
flags.StringVarP(&cmd.opts.Token, "token", "", "", "SSO Token")
flags.StringVarP(&cmd.opts.Client, "sso-client", "", "platform-cli", "SSO Client")
flags.StringVarP(&cmd.opts.Realm, "realm", "", "Pathwar-Dev", "SSO Realm")
flags.StringVarP(&cmd.opts.AuthURL, "auth-url", "", "https://sso.pathwar.land/auth", "SSO Authentication URL")
flags.StringVarP(&cmd.opts.AuthURL, "auth-url", "", "https://id.pathwar.land/auth", "SSO Authentication URL")
flags.StringVarP(&cmd.opts.PublicKey, "public-key", "", "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlEFxLlywsbI5BQ7DVkA66fICWGIYPpD+aZNYRR7SIc0zdtJR4xMOt5CjM0vbYT4z2a1U2yl0ewunyxFm8niS8w6mKYFnOS4nnSchQyIAmJkpLC4eAjijCdEHdr8mSqamThSrVRGSYEEsa+adidC13kRDy7NDKhvZb8F0YqnktNk6WHSlb8r2QRLPJ1DX534jjXPY6l/eoHuLJAOZxBlfwV5Dg37TVmf2xAH812E7ZigycLAvhsMvr5x2jLavAEEnZZmlQf4cyQ4tlMzKS1Zp0NcdOGS/i6lrndc5pNtZQuGr8IGBrEbTRFUiavn/HDnyalYZy8T5LakXRdVaKdshAQIDAQAB", "SSO Public Key")
if err := viper.BindPFlags(flags); err != nil {
zap.L().Warn("failed to bind viper flags", zap.Error(err))
Expand Down
4 changes: 2 additions & 2 deletions client/cmd_client_claims.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ func (cmd *claimsCommand) ParseFlags(flags *pflag.FlagSet) {

func runClaims(opts *claimsOptions) error {
// FIXME: add an option to automatically fetch the public key from
// https://sso.pathwar.land/auth/realms/Pathwar-Dev/protocol/openid-connect/certs
// https://id.pathwar.land/auth/realms/Pathwar-Dev/protocol/openid-connect/certs
// or
// https://sso.pathwar.land/auth/realms/Pathwar-Dev
// https://id.pathwar.land/auth/realms/Pathwar-Dev
tokenString := opts.client.Token
claims := jwt.MapClaims{}
token, err := jwt.ParseWithClaims(tokenString, claims, func(token *jwt.Token) (interface{}, error) {
Expand Down
2 changes: 1 addition & 1 deletion web/public/keycloak.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"realm": "Pathwar-Dev",
"auth-server-url": "https://sso.pathwar.land/auth",
"auth-server-url": "https://id.pathwar.land/auth",
"ssl-required": "external",
"resource": "platform-front",
"public-client": true,
Expand Down

0 comments on commit 3de8f81

Please sign in to comment.