Commit Graph

546 Commits

Author SHA1 Message Date
github-actions[bot] e7130884a0 Version Packages 2021-08-26 11:25:27 +00:00
Patrik Oldsberg ea9fe95674 auth-backend: fix but where undefined state values where being stringified
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-24 17:42:04 +02:00
Johan Haals 5aebf54a12 Merge pull request #6535 from DeveloperSHD/feature/gitlab-auth-provider
Feature/gitlab auth provider
2021-08-23 16:54:50 +02:00
Patrik Oldsberg a4d419025a Merge pull request #6912 from backstage/rugvip/gha
auth-backend,core-app-api: add support for auth via GitHub Apps + handler options
2021-08-23 14:58:27 +02:00
Patrik Oldsberg ef2eb3b9ac auth-backend: fix sign-in provider docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-21 11:31:25 +02:00
Patrik Oldsberg 7a6373e080 auth-backend: new GithubOAuthResult type + refresh test & fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-20 14:36:36 +02:00
Patrik Oldsberg 913256d197 auth-backend: migrate GitHub handler to sign-in resolver + add refresh support
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-20 14:17:52 +02:00
Patrik Oldsberg 5f6f33a5ed auth-backend: fall back to username and id as displayName for profiles
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-20 14:09:40 +02:00
Patrik Oldsberg 8e9e5fe72f auth-backend: allow for optional refresh token usage in OAuthAdapter
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-20 14:08:56 +02:00
github-actions[bot] 6e43220f08 Version Packages 2021-08-20 09:21:26 +00:00
Patrik Oldsberg 79d24a9665 auth-backend: fix origin verification
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-20 10:59:12 +02:00
Tom Opdebeeck 86c00525f6 Merge branch 'master' into feature/gitlab-auth-provider
Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
2021-08-20 10:15:13 +02:00
Tom Opdebeeck 5ea93f7246 chore(auth-backend): update api report
Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
2021-08-20 10:06:04 +02:00
github-actions[bot] 6f4c73ece4 Version Packages 2021-08-19 12:20:01 +00:00
Tom Opdebeeck 4804c7257a fix(auth-backend): cleanup
* remove unused method "extractGitlabUserId"
* consistent profile id
* move avatarUrl check to makeProfileInfo (extend passport type)

Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
2021-08-19 10:45:41 +02:00
Tom Opdebeeck 7ddb49a05c fix(auth-backend): gitlab provider tests
Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
2021-08-19 10:45:41 +02:00
Tom Opdebeeck 278f1fe23e fix(auth-backend): cleanup profile transform
* make more consistent with github flow

Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
2021-08-19 10:45:41 +02:00
Patrik Oldsberg 879a98ca3b auth-backend: fix origin filter tests on windows
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-17 17:25:06 +02:00
Samira Mokaram 5ab35b84ec fix check api report
Signed-off-by: Samira Mokaram <samiram@spotify.com>
2021-08-17 12:00:05 +02:00
Samira Mokaram 5132ae873d fix test
Signed-off-by: Samira Mokaram <samiram@spotify.com>
2021-08-17 11:45:03 +02:00
Tom Opdebeeck c097e8893b fix: revert changes in github provider
Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
2021-08-13 11:35:30 +02:00
Tom Opdebeeck 3a0fbdea15 Merge branch 'master' into feature/gitlab-auth-provider 2021-08-13 11:32:11 +02:00
Tom Opdebeeck ec8930cb5b fix(auth-backend): update authhandler & signinresolver
Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
2021-08-13 11:28:59 +02:00
Tom Opdebeeck fcc4e3c428 fix(auth-backend): revert username added on profie
Signed-off-by: Tom Opdebeeck <tom.opdebeeck@studiohyperdrive.be>
2021-08-13 11:28:59 +02:00
Samira Mokaram 782cd0ed1e add scape
Signed-off-by: Samira Mokaram <samiram@spotify.com>
2021-08-13 09:58:46 +02:00
Samira Mokaram 03121606fc fix prettier issue
Signed-off-by: Samira Mokaram <samiram@spotify.com>
2021-08-12 16:47:31 +02:00
Samira Mokaram 3201f09734 add test
Signed-off-by: Samira Mokaram <samiram@spotify.com>
2021-08-12 16:15:14 +02:00
Samira Mokaram 26bcc81b39 Merge branch 'master' into mob/auth-origins 2021-08-12 13:43:45 +02:00
github-actions[bot] c734d6995a Version Packages 2021-08-12 08:21:56 +00:00
Tim Hansen d051bc2fda Minor cleanup
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-08-11 12:24:08 -06:00
Tim Hansen 4f11e67cc4 Simplify signature
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-08-11 12:24:08 -06:00
Tim Hansen 4a019712b4 Tweak method name
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-08-11 12:24:08 -06:00
Tim Hansen 762520d1ba Structure args, return inflated ent
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-08-11 12:24:08 -06:00
Tim Hansen 29f7cfffb7 Add resolveCatalogMemberClaims method
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-08-11 12:24:08 -06:00
Fredrik Adelöw ff9222a2e3 Merge pull request #6785 from backstage/dependabot/npm_and_yarn/luxon-2.0.2
chore(deps): bump luxon from 1.27.0 to 2.0.2
2021-08-11 16:22:34 +02:00
Samira Mokaram a90523497f address comments
Signed-off-by: Samira Mokaram <samiram@spotify.com>
2021-08-11 15:01:05 +02:00
Samira Mokaram b3bf8967a4 Auth backend: add support for authenticating from additional app origins
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Samira Mokaram <samiram@spotify.com>
2021-08-11 15:01:05 +02:00
Miguel Alexandre b8d1a989e1 Fix prettier error
Signed-off-by: Miguel Alexandre <m.alexandrex@gmail.com>
2021-08-11 11:56:07 +02:00
Miguel Alexandre 7315ee644d Add new contract to API report
Signed-off-by: Miguel Alexandre <m.alexandrex@gmail.com>
2021-08-11 11:53:13 +02:00
Miguel Alexandre bfe0ff93fb Implement auth handler and sign-in resolvers for okta
Signed-off-by: Miguel Alexandre <m.alexandrex@gmail.com>
2021-08-11 11:53:13 +02:00
dependabot[bot] 82ac007e53 chore(deps): bump luxon from 1.27.0 to 2.0.2
Bumps [luxon](https://github.com/moment/luxon) from 1.27.0 to 2.0.2.
- [Release notes](https://github.com/moment/luxon/releases)
- [Changelog](https://github.com/moment/luxon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moment/luxon/compare/1.27.0...2.0.2)

---
updated-dependencies:
- dependency-name: luxon
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 04:19:52 +00:00
Patrik Oldsberg 95e3ec7f2b Merge pull request #6760 from backstage/rugvip/codec
auth-backend: read and encode the entire state object in encodeState and readState
2021-08-10 00:11:21 +02:00
Patrik Oldsberg c9bab6d596 auth-backend: read and encode the entire state object in encodeState and readState
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-09 16:55:32 +02:00
Fredrik Adelöw 923491eece run prettier formatting
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-08-09 11:54:38 +02:00
github-actions[bot] 32b48219ce Version Packages 2021-07-29 10:32:54 +00:00
blam cd0a49fd6b chore: tidying up a little bit ready for release
Signed-off-by: blam <ben@blam.sh>
2021-07-29 10:13:25 +02:00
Jos Craw c4cb0b06de feat: added optional disableRefesh config for OAuth2
Signed-off-by: Jos Craw <jos@joscraw.net>
2021-07-29 11:18:34 +12:00
Stéphane MORI 04be344a8f Set acceptedClockSkewMs SAML configuration optional
Signed-off-by: Stéphane MORI <stephane.mori@gmail.com>
2021-07-28 09:37:37 +02:00
Stéphane MORI 6192b5e1c7 Allow to configure SAML auth acceptedClockSkewMs
Signed-off-by: Stéphane MORI <stephane.mori@gmail.com>
2021-07-28 09:37:37 +02:00
github-actions[bot] f51fcaeba2 Version Packages 2021-07-22 10:52:38 +00:00