Skip to content

Use auth portal for better gcp and aws oauth UX#1992

Draft
edwardrf wants to merge 3 commits intomainfrom
edw/auth-portal-oauth
Draft

Use auth portal for better gcp and aws oauth UX#1992
edwardrf wants to merge 3 commits intomainfrom
edw/auth-portal-oauth

Conversation

@edwardrf
Copy link
Contributor

Description

Make use auth portal for better oauth UX:

  1. GCP: use server side oauth to allow poll model so running defang with oauth workflow in a container would still work
  2. AWS uses auth server as oauth url shortener

Linked Issues

#1991

Checklist

  • I have performed a self-review of my code
  • I have added appropriate tests
  • I have updated the Defang CLI docs and/or README to reflect my changes, if necessary

AWS: Use the auth portal url shortener, always use cross device
workflow, but still allow press enter to open browser
GCP: Use new server side oauth workflow, generate local libsodium
asymmetric keys, where public key is used as the session state as well
as encryption key by the server side, so no unencrypted credentials are
stored on the auth server and only the local cli with the matching
private key is able to decrypt and use the credentials
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 17, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 77febbbb-8f0c-46ef-8fd4-147c91fe33b0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch edw/auth-portal-oauth
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

@edwardrf edwardrf changed the title Edw/auth portal oauth Use auth portal for better gcp and aws oauth UX Mar 17, 2026
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.

3 participants