feat: assign teams via oidc #3033

Open
viehlieb wants to merge 6 commits from viehlieb/frontend:assign_teams_via_oidc into main
Contributor

Assigning teams via oidc

Allow team assignment via oidc.
PR comes together with pull request from

vikunja/api#1393

Things changed:

  • Extend provider to include "scope"
  • extend team to include "oidcId" as String
  • disallow editing of oidc teams
  • mark teams from sso
## Assigning teams via oidc Allow team assignment via oidc. PR comes together with pull request from https://kolaente.dev/vikunja/api/pulls/1393 Things changed: * Extend provider to include "scope" * extend team to include "oidcId" as String * disallow editing of oidc teams * mark teams from sso
viehlieb added 4 commits 2023-01-30 15:31:27 +00:00
konrad requested changes 2023-01-31 14:52:31 +00:00
@ -9,6 +9,7 @@ export interface ITeam extends IAbstract {
description: string
members: ITeamMember[]
right: Right
oidcId: string

What's the null value of this? An empty string?

What's the null value of this? An empty string?
@ -4,3 +4,3 @@
:class="{ 'is-loading': teamService.loading }"
>
<card class="is-fullwidth" v-if="userIsAdmin" :title="title">
<card class="is-fullwidth" v-if="userIsAdmin && team.oidcId == 0" :title="title">

If oidcId is a string, the comparison here does not make sense.

If `oidcId` is a string, the comparison here does not make sense.
@ -16,0 +16,4 @@
{{ t.name }}{{ " (sso: " + t.oidcId + ")" }}
</p>
<p v-else>
{{ t.name }}

Please use something like this instead:

{{ t.name + (t.oidcId !== 0 ? ` (sso: ${t.oidcId})` : '') }}
Please use something like this instead: ``` {{ t.name + (t.oidcId !== 0 ? ` (sso: ${t.oidcId})` : '') }} ```
Member

Hi viehlieb!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://3033-assignteamsviaoidc--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi viehlieb! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://3033-assignteamsviaoidc--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
Member

@viehlieb: could you take a look at this? Thanks :)

@viehlieb: could you take a look at this? Thanks :)
viehlieb added 1 commit 2023-02-10 14:55:13 +00:00
konrad changed title from assign_teams_via_oidc to feat: assign teams via oidc 2023-02-13 11:04:04 +00:00
viehlieb force-pushed assign_teams_via_oidc from 5f98355948 to 2d2fcc5d96 2024-02-23 10:19:55 +00:00 Compare
viehlieb added 1 commit 2024-02-23 10:51:08 +00:00
viehlieb added 1 commit 2024-02-23 14:40:35 +00:00
viehlieb force-pushed assign_teams_via_oidc from ef00b318cb to 93bedee02f 2024-02-23 14:41:26 +00:00 Compare
This repo is archived. You cannot comment on pull requests.
No description provided.