-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display authentication type valid values (#3415)
also reworked the linter to be native JS not ugly, misshapen bash :P
- Loading branch information
Showing
13 changed files
with
94 additions
and
58 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
36 changes: 36 additions & 0 deletions
36
astro/src/content/docs/_shared/_authentication-type-values.mdx
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 @@ | ||
--- | ||
# show_since is a 6 digit number | ||
# the first one is the major version | ||
# the next three are the minor version | ||
# the last two are the patch version | ||
# it is used to only show availableSince on feature doc that were created before the authentication type was created. If the authenticationType was added before the feature was added, availableSince makes no sense. | ||
--- | ||
import AvailableSince from 'src/components/api/AvailableSince.astro'; | ||
|
||
* `APPLE` - The User was authenticated using Apple. {props.show_since < 101700 ? <AvailableSince since="1.17.0" /> : ''} | ||
* `APPLICATION_TOKEN` - The User was authenticated using an [Application Authentication Token](/docs/lifecycle/authenticate-users/application-authentication-tokens). | ||
* `EpicGames` -The User was authenticated using Epic Games. {props.show_since < 102800 ? <AvailableSince since="1.28.0" /> : ''} | ||
* `FACEBOOK` - The User was authenticated using Facebook. {props.show_since < 100100 ? <AvailableSince since="1.1.0" /> : ''} | ||
* `FEDERATED_JWT` - The User was authenticated using a JWT from an external Identity Provider. | ||
* `GENERIC_CONNECTOR` - The user was authenticated using a generic connector. {props.show_since < 101800 ? <AvailableSince since="1.18.0" /> : ''} | ||
* `GOOGLE` - The User was authenticated using Google. {props.show_since < 100100 ? <AvailableSince since="1.1.0" /> : ''} | ||
* `HYPR` - The User was authenticated using the HYPR provider. {props.show_since < 101200 ? <AvailableSince since="1.12.0" /> : ''} | ||
* `JWT_SSO` - A valid JWT authorized to one Application was exchanged for another JWT authorized to a different Application. | ||
* `LDAP_CONNECTOR` - The user was authenticated using an LDAP connector. {props.show_since < 101800 ? <AvailableSince since="1.18.0" /> : ''} | ||
* `LINKEDIN` - The user was authenticated using LinkedIn. {props.show_since < 102300 ? <AvailableSince since="1.23.0" /> : ''} | ||
* `Nintendo` - The User was authenticated using Nintendo. {props.show_since < 103600 ? <AvailableSince since="1.36.0" /> : ''} | ||
* `ONE_TIME_PASSWORD` The User was authenticated using a one time password. {props.show_since < 100500 ? <AvailableSince since="1.5.0" /> : ''} | ||
* `OPENID_CONNECT` - The User was authenticated using an external OpenID Connect provider. {props.show_since < 100100 ? <AvailableSince since="1.1.0" /> : ''} | ||
* `PASSWORD` - The User was authenticated using a loginId and password combination. | ||
* `PASSWORDLESS` - The user was authenticated using a passwordless login link. {props.show_since < 100500 ? <AvailableSince since="1.5.0" /> : ''} | ||
* `PING` - The user was authenticated using a `PUT` request on the Login API. This is used to record a login event without prompting for credentials, such as when the FusionAuth SSO session is used. | ||
* `REFRESH_TOKEN` - The User requested a new JWT using a Refresh Token. | ||
* `REGISTRATION` - The user was created using the Registration API. {props.show_since < 101600 ? <AvailableSince since="1.16.0" /> : ''} | ||
* `SAMLv2` - The User was authenticated using an external SAMLv2 provider. {props.show_since < 100600 ? <AvailableSince since="1.6.0" /> : ''} | ||
* `SAMLv2IdpInitiated` - The User was authenticated using an external SAMLv2 provider using an IdP Initiated login. {props.show_since < 102800 ? <AvailableSince since="1.28.0" /> : ''} | ||
* `SonyPSN` - The User was authenticated using Sony {props.show_since < 102800 ? <AvailableSince since="1.28.0" /> : ''} | ||
* `Steam` - The User was authenticated using Steam {props.show_since < 102800 ? <AvailableSince since="1.28.0" /> : ''} | ||
* `TWITTER` - The User was authenticated using Twitter. {props.show_since < 100100 ? <AvailableSince since="1.1.0" /> : ''} | ||
* `Twitch` - The User was authenticated using Twitch {props.show_since < 102800 ? <AvailableSince since="1.28.0" /> : ''} | ||
* `USER_CREATE` - The user was created using the User API. {props.show_since < 101600 ? <AvailableSince since="1.16.0" /> : ''} | ||
* `Xbox` - The User was authenticated using Xbox {props.show_since < 102800 ? <AvailableSince since="1.28.0" /> : ''} |
27 changes: 0 additions & 27 deletions
27
astro/src/content/docs/_shared/_authentication_type_claim_values.mdx
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { execSync } from 'child_process'; | ||
|
||
const prNumber = process.env.PR_NUMBER; | ||
if (!prNumber) { | ||
console.error('Error: PR_NUMBER environment variable is not set.'); | ||
process.exit(1); | ||
} | ||
|
||
const validExtensions = ['js', 'mjs', 'cjs', 'ts', 'md', 'mdx']; | ||
const validStatus = ['added', 'modified']; | ||
|
||
// Get the list of changed files in the pull request | ||
const modifiedFilesJson = execSync(`gh api repos/FusionAuth/fusionauth-site/pulls/${prNumber}/files`).toString(); | ||
const modifiedFiles = JSON.parse(modifiedFilesJson); | ||
|
||
const changedSrcFiles = modifiedFiles | ||
.filter(file => file.filename.startsWith('astro/src/')) | ||
.filter(file => validExtensions.some(ext => file.filename.endsWith(ext))) | ||
.filter(file => validStatus.includes(file.status)) | ||
.map(file => file.filename.replace('astro/', '')); | ||
|
||
console.log(`Linting changed files: ${changedSrcFiles.join(', ')}`); | ||
|
||
try { | ||
const output = execSync(`npm run lint -- ${changedSrcFiles.join(' ')}`); | ||
console.log(output.toString()); | ||
} catch (e) { | ||
console.error(e.stdout.toString()); | ||
process.exit(1); | ||
} |
This file was deleted.
Oops, something went wrong.