OpenFn / OpenFn/lightning

OAuth credentials: Re-authenticate banner rendering when choosing scopes

Open
#3,362 0 comments 0 reactions 2 assignees View on GitHub

@theroinaochieng is already working on this.

Since Jul 2, 2025.

bug credentials
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

When creating an oauth credential, you can choose the scopes you want to associate with your credential. Currently when choosing those scopes, the app renders a yellow banner asking you to reauthorize the credential. That's is great, but the language and the banner are misleading the user and distracting them. That banner should only render when we already authenticated before and are changing the scopes (there it makes sense to have it) but it shouldn't render when we choosing scopes before any authentication.

v2.13.3 (1.5.11)

I have reproduced this locally on main:

  • Yes
  • No

To Reproduce Steps to reproduce the behavior:

  1. Go create an OAuth Credential
  2. Check or uncheck some of the scopes
  3. See the banner

Expected behavior A clear and concise description of what you expected to
happen.

The banner should only display when you change scopes after authenticating. If you haven't authenticated before, the banner shouldn't be rendered. Only the 'Authorize with' button should be there.

Screenshots If applicable, add screenshots to help explain your problem.

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.