Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make callback url configurable #617

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

raulb
Copy link
Member

@raulb raulb commented Feb 1, 2023

Description of change

In order to span up a new browser in a different environment (such as the one using Nimbus), we'll need to make callback urls configurable. This pull request should take care of that.

Type of change

  • New feature
  • Bug fix
  • Refactor
  • Documentation

How was this tested?

⚠️ Will test on a nimbus environment as soon as I have one available.

  • Tested in nimbus.

Demo

Before

Callback url is always "http://localhost:21900/oauth/callback"

Now

You can set different environment variables that would make it configurable:

  • MEROXA_AUTH_CALLBACK_HOST
  • MEROXA_AUTH_CALLBACK_URL
  • MEROXA_AUTH_CALLBACK_PORT
  • MEROXA_AUTH_CALLBACK_PROTOCOL

⚠️ MEROXA_AUTH_CALLBACK_URL will take precedence over the rest in the event of that being set.

Or simply do (for example):

MEROXA_AUTH_CALLBACK_URL=http://nimbus.meroxa.io/oauth/callback meroxa login

@raulb raulb self-assigned this Feb 1, 2023
@raulb raulb requested a review from simonl2002 February 1, 2023 14:13
@raulb raulb force-pushed the raul/make-cli-login-configurable branch from 4f0e8f7 to 3ce1eb3 Compare February 1, 2023 14:45
@raulb raulb marked this pull request as ready for review February 1, 2023 14:45
@raulb raulb force-pushed the raul/make-cli-login-configurable branch from 3ce1eb3 to e2102b2 Compare February 1, 2023 14:49
Copy link
Contributor

@simonl2002 simonl2002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@raulb raulb merged commit f64c60b into master Feb 1, 2023
@raulb raulb deleted the raul/make-cli-login-configurable branch February 1, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants