Skip to content

docs(orchestrator): add documentation for using the auth requester widget#976

Merged
mareklibra merged 2 commits into
redhat-developer:mainfrom
batzionb:authdocs
Jun 17, 2025
Merged

docs(orchestrator): add documentation for using the auth requester widget#976
mareklibra merged 2 commits into
redhat-developer:mainfrom
batzionb:authdocs

Conversation

@batzionb
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread workspaces/orchestrator/docs/auth.md Outdated
| ------------------------------- | ------------------ | -------- | --------------------------------------------------------------------- |
| `ui:widget` | string | Yes | Must be `"AuthRequester"` |
| `ui:props.authTokenDescriptors` | array of objects | Yes | List of token requirements |
| — `provider` | string | Yes | One of `github`, `gitlab`, `microsoft`, etc. |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would remove the etc here but kept maintaining that list when we add new providers

Comment thread workspaces/orchestrator/docs/auth.md Outdated
## Best Practices

- Use this field to declare token requirements up front.
- Only one `AuthRequester` field is needed per form, even for multiple providers.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's add explanation what happens if there are multiple instances of the widget. Or rephrase.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If there are multiple, only the last one would apply. Perhaps we should have an error message for this case?

| `ui:widget` | string | Yes | Must be `"AuthRequester"` |
| `ui:props.authTokenDescriptors` | array of objects | Yes | List of token requirements |
| — `provider` | string | Yes | One of `github`, `gitlab`, `microsoft`, etc. |
| — `tokenType` | string | Yes | `"oauth"` or `"openId"` |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's mention what it means in reality:

With the providers added in the future, we will need to add a note that for some there is no support for both token types.

@sonarqubecloud
Copy link
Copy Markdown

@mareklibra mareklibra merged commit da403c1 into redhat-developer:main Jun 17, 2025
9 checks passed
elai-shalev pushed a commit to elai-shalev/rhdh-plugins that referenced this pull request Jan 21, 2026
…dget (redhat-developer#976)

* docs(orchestrator): add documentation for using the auth requester widget

* improvements following comments
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