-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CST-10704][CST-14902] Adds ORCID login flow with private email
- Loading branch information
1 parent
11fad8d
commit 590fe70
Showing
88 changed files
with
3,372 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ export enum AuthMethodType { | |
Ip = 'ip', | ||
X509 = 'x509', | ||
Oidc = 'oidc', | ||
Orcid = 'orcid' | ||
Orcid = 'orcid', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum AuthRegistrationType { | ||
Orcid = 'ORCID', | ||
Validation = 'VALIDATION_', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { autoserialize, autoserializeAs, deserialize } from 'cerialize'; | ||
|
||
import { typedObject } from '../../cache/builders/build-decorators'; | ||
import { CacheableObject } from '../../cache/cacheable-object.model'; | ||
import { excludeFromEquals } from '../../utilities/equals.decorators'; | ||
import { ResourceType } from '../../shared/resource-type'; | ||
import { HALLink } from '../../shared/hal-link.model'; | ||
import { MACHINE_TOKEN } from './machine-token.resource-type'; | ||
|
||
/** | ||
* A machine token that can be used to authenticate a rest request | ||
*/ | ||
@typedObject | ||
export class MachineToken implements CacheableObject { | ||
static type = MACHINE_TOKEN; | ||
/** | ||
* The type for this MachineToken | ||
*/ | ||
@excludeFromEquals | ||
@autoserialize | ||
type: ResourceType; | ||
|
||
/** | ||
* The value for this MachineToken | ||
*/ | ||
@autoserializeAs('token') | ||
value: string; | ||
|
||
/** | ||
* The {@link HALLink}s for this MachineToken | ||
*/ | ||
@deserialize | ||
_links: { | ||
self: HALLink; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ResourceType } from '../../shared/resource-type'; | ||
|
||
/** | ||
* The resource type for MachineToken | ||
* | ||
* Needs to be in a separate file to prevent circular | ||
* dependencies in webpack. | ||
*/ | ||
export const MACHINE_TOKEN = new ResourceType('machinetoken'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.