-
Notifications
You must be signed in to change notification settings - Fork 7
54 enroll via multichallenge optional #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lukasmatusiewicz
wants to merge
66
commits into
main
Choose a base branch
from
54-enroll-via-multichallenge-optional
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
8255674
custom parameters to server requests
lukasmatusiewicz 60d02e6
tests
lukasmatusiewicz b3d62b0
Update privacyIDEAADFSProvider.csproj
lukasmatusiewicz 1ef83d5
Update RegistryReader.cs
lukasmatusiewicz ff3cd78
Update PrivacyIDEA.cs
lukasmatusiewicz 9eae919
Update PIWebAuthnSignRequest.cs
lukasmatusiewicz 53295b0
Update PIResponse.cs
lukasmatusiewicz 74f8cec
Update PILog.cs
lukasmatusiewicz c5ba5df
Update PIEnrollResponse.cs
lukasmatusiewicz 5caa67a
Update PIChallenge.cs
lukasmatusiewicz 44e94d4
Update PIAuthenticationStatus.cs
lukasmatusiewicz 327e403
Update Configuration.cs
lukasmatusiewicz 13411b4
Update privacyIDEAADFSProvider.sln
lukasmatusiewicz e569001
Update PrivacyIDEA.cs
lukasmatusiewicz b135c61
Merge branch 'main' into 52-feature-forward-client-ip-and-client-user…
lukasmatusiewicz d2cb295
custom parameters to server requests
lukasmatusiewicz d85642e
tests
lukasmatusiewicz 768d69a
Update privacyIDEAADFSProvider.csproj
lukasmatusiewicz b430726
Update RegistryReader.cs
lukasmatusiewicz 8632a41
Update PIWebAuthnSignRequest.cs
lukasmatusiewicz ecad165
Update PIResponse.cs
lukasmatusiewicz ad89809
Update PILog.cs
lukasmatusiewicz 63786f9
Update PIEnrollResponse.cs
lukasmatusiewicz dbfcc5b
Update PIChallenge.cs
lukasmatusiewicz 9d72252
Update PIAuthenticationStatus.cs
lukasmatusiewicz 10d4842
Update Configuration.cs
lukasmatusiewicz d9ab67d
Update privacyIDEAADFSProvider.sln
lukasmatusiewicz fa0114d
Update PrivacyIDEA.cs
lukasmatusiewicz 4ea903a
Update privacyIDEAADFSProvider/Adapter.cs
lukasmatusiewicz 7979369
Create PIConstants.cs
lukasmatusiewicz e746616
Update PIEnrollResponse.cs
lukasmatusiewicz 06c6abe
Update PIResponse.cs
lukasmatusiewicz a0ebb07
Update Adapter.cs
lukasmatusiewicz 96bbf41
Update privacyIDEAADFSProvider.csproj
lukasmatusiewicz 1f86095
Update PIConstants.cs
lukasmatusiewicz 0a116db
Update privacyIDEAADFSProvider.csproj
lukasmatusiewicz 513a52c
Update PrivacyIDEA.cs
lukasmatusiewicz d37efaf
Merge branch '52-feature-forward-client-ip-and-client-user-agent' int…
lukasmatusiewicz f243fd0
Update PrivacyIDEA.cs
lukasmatusiewicz ef64056
Update Adapter.cs
lukasmatusiewicz 0367bf1
Update PrivacyIDEA.cs
lukasmatusiewicz f15d9c3
Update PIConstants.cs
lukasmatusiewicz 7cecc20
Update Adapter.cs
lukasmatusiewicz 29ab884
Update PIConstants.cs
lukasmatusiewicz 68f8acc
Update PIConstants.cs
lukasmatusiewicz 3c3da69
Update PIResponse.cs
lukasmatusiewicz 587d1ac
Update PrivacyIDEA.cs
lukasmatusiewicz 83ea1a1
Update AuthPage.html
lukasmatusiewicz a6a0fdb
Update FormResult.cs
lukasmatusiewicz df43096
Update AdapterPresentationForm.cs
lukasmatusiewicz 50d412e
Update PIResponse.cs
lukasmatusiewicz 73d9643
Update Adapter.cs
lukasmatusiewicz a835edb
final fix
lukasmatusiewicz de7d670
Update privacyIDEAADFSProvider/Adapter.cs
lukasmatusiewicz 5fc9f98
rename user agent const
lukasmatusiewicz 4d12786
Merge branch '54-enroll-via-multichallenge-optional' of https://githu…
lukasmatusiewicz 0700ad9
Merge branch 'main' into 54-enroll-via-multichallenge-optional
lukasmatusiewicz 024b9e6
Update PrivacyIDEA.cs
lukasmatusiewicz 2ca926c
Merge branch '54-enroll-via-multichallenge-optional' of https://githu…
lukasmatusiewicz 84a7c27
Update PrivacyIDEA.cs
lukasmatusiewicz 32c26ea
extract method for tr id collector
lukasmatusiewicz 2905b82
move code from long if-else block to more readable methods
lukasmatusiewicz 4fc9c4d
change var to let or const
lukasmatusiewicz 5f40d1e
Update privacyIDEAADFSProvider/Adapter.cs
lukasmatusiewicz 4052552
Update PIConstants.cs
lukasmatusiewicz cfbe145
Merge branch '54-enroll-via-multichallenge-optional' of https://githu…
lukasmatusiewicz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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
131 changes: 131 additions & 0 deletions
131
privacyIDEAADFSProvider/PrivacyIDEA Client/PIConstants.cs
This file contains hidden or 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,131 @@ | ||
| namespace PrivacyIDEAADFSProvider.PrivacyIDEA_Client | ||
| { | ||
| internal class PIConstants | ||
| { | ||
| // ENDPOINTS | ||
| public const string AUTH_ENDPOINT = "/auth"; | ||
| public const string POLLTRANSACTION_ENDPOINT = "/validate/polltransaction"; | ||
| public const string TRIGGERCHALLENGE_ENDPOINT = "/validate/triggerchallenge"; | ||
| public const string VALIDATE_INITIALIZE_ENDPOINT = "/validate/initialize"; | ||
| public const string TOKEN_ENDPOINT = "/token/"; | ||
| public const string TOKEN_INIT_ENDPOINT = "/token/init"; | ||
| public const string VALIDATE_CHECK_ENDPOINT = "/validate/check"; | ||
| public const string POST = "POST"; | ||
| public const string GET = "GET"; | ||
|
|
||
| // SERVER RESPONSE | ||
| public const string RESULT = "result"; | ||
| public const string STATUS = "status"; | ||
| public const string ERROR = "error"; | ||
| public const string CODE = "code"; | ||
| public const string MESSAGE = "message"; | ||
| public const string DETAIL = "detail"; | ||
| public const string VALUE = "value"; | ||
| public const string CHALLENGE = "challenge"; | ||
| public const string SERIAL = "serial"; | ||
| public const string TYPE = "type"; | ||
| public const string TRANSACTION_ID = "transaction_id"; | ||
| public const string IMAGE = "image"; | ||
| public const string CLIENT_MODE = "client_mode"; | ||
| public const string ATTRIBUTES = "attributes"; | ||
| public const string GOOGLEURL = "googleurl"; | ||
| public const string ALLOW_CREDENTIALS = "allowCredentials"; | ||
| public const string AUTHENTICATION = "authentication"; | ||
| public const string PREFERRED_CLIENT_MODE = "preferred_client_mode"; | ||
| public const string INTERACTIVE = "interactive"; | ||
| public const string POLL = "poll"; | ||
| public const string PASSKEY = "passkey"; | ||
| public const string PASSKEY_CHALLENGE = "passkey_challenge"; | ||
| public const string MULTI_CHALLENGE = "multi_challenge"; | ||
| public const string PASSKEY_REGISTRATION = "passkey_registration"; | ||
| public const string LINK = "link"; | ||
| public const string WEBAUTHNSIGNREQUEST = "webAuthnSignRequest"; | ||
| public const string ENROLLMENT_VIA_MULTICHALLENGE = "enroll_via_multichallenge"; | ||
| public const string ENROLLMENT_VIA_MULTICHALLENGE_OPTIONAL = "enroll_via_multichallenge_optional"; | ||
| public const string CANCEL_ENROLLMENT = "cancel_enrollment"; | ||
|
|
||
| // REQUEST PARAMETERS | ||
| public const string REALM = "realm"; | ||
| public const string USERNAME = "username"; | ||
| public const string PASS = "pass"; | ||
| public const string OTP = "otp"; | ||
| public const string USER = "user"; | ||
| public const string GENKEY = "genkey"; | ||
| public const string TOTP = "totp"; | ||
| public const string ORIGIN = "Origin"; | ||
| public const string PASSWORD = "password"; | ||
| public const string USER_AGENT_HEADER = "User-Agent"; | ||
|
|
||
| // TOKEN TYPES | ||
| public const string TOKEN_TYPE_OTP = "otp"; | ||
| public const string TOKEN_TYPE_PUSH = "push"; | ||
| public const string TOKEN_TYPE_PASSKEY = "passkey"; | ||
| public const string TOKEN_TYPE_WEBAUTHN = "webauthn"; | ||
|
|
||
| // FIDO2 PARAMETERS | ||
| public const string CREDENTIALID = "credentialId"; | ||
| public const string CREDENTIAL_ID = "credential_id"; | ||
| public const string CLIENTDATA = "clientdata"; | ||
| public const string CLIENTDATAJSON = "clientdatajson"; | ||
| public const string CLIENTDATAJSON_CAM = "clientDataJSON"; | ||
| public const string SIGNATUREDATA = "signaturedata"; | ||
| public const string SIGNATURE = "signature"; | ||
| public const string AUTHENTICATORDATA = "authenticatordata"; | ||
| public const string AUTHENTICATORDATA_CAM = "authenticatorData"; | ||
| public const string USERHANDLE = "userhandle"; | ||
| public const string USERHANDLE_CAM = "userHandle"; | ||
| public const string RAW_ID = "raw_id"; | ||
| public const string RAWID = "rawid"; | ||
| public const string RAWID_CAM = "rawId"; | ||
| public const string ASSERTIONCLIENTEXTENSIONS = "assertionclientextensions"; | ||
| public const string AUTHENTICATORATTACHMENT = "authenticatorattachment"; | ||
| public const string AUTHENTICATORATTACHMENT_CAM = "authenticatorAttachment"; | ||
| public const string ATTESTATIONOBJECT = "attestationobject"; | ||
| public const string ATTESTATIONOBJECT_CAM = "attestationObject"; | ||
|
|
||
| public const string MEDIA_TYPE_URLENCODED = "application/x-www-form-urlencoded"; | ||
|
|
||
| // ADAPTER | ||
| public const string NOT_USED = "not used"; | ||
| public const string AUTH_SUCCESS = "authSuccess"; | ||
| public const string USERID = "userid"; | ||
| public const string DOMAIN = "domain"; | ||
| public const string FORM_RESULT = "formResult"; | ||
| public const string PUSH_AVAILABLE = "pushAvailable"; | ||
| public const string TRANSACTIONID = "transactionid"; | ||
| public const string CLIENT = "client"; | ||
| public const string CLIENT_USER_AGENT = "client_user_agent"; | ||
| public const string X_FORWARDED_FOR = "X-Forwarded-For"; | ||
| public const string UNKNOWN = "unknown"; | ||
| public const string PRIVACYIDEA_ADFS_USERAGENT = "PrivacyIDEA-ADFS/"; | ||
| public const string DATE_FORMAT = "yyyy-MM-ddTHH\\:mm\\:ss;"; | ||
| public const string EVENT_LOG_ADFS_ADMIN = "AD FS/Admin"; | ||
| public const string EVENT_LOG_SOURCE = "privacyIDEAProvider"; | ||
| public const string STREAM_WRITER_LOG = "C:\\PrivacyIDEA-ADFS log.txt"; | ||
| public const string MS_SCHEMA_CLAIM_AUTHENTICATIONMETHOD = "http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod"; | ||
| public const string MS_SCHEMA_AUTHMETHOD_OTP = "http://schemas.microsoft.com/ws/2012/12/authmethod/otp"; | ||
|
|
||
| // FORM | ||
| public const string ENROLLMENT_IMG = "enrollmentImg"; | ||
| public const string ENROLLMENT_LINK = "enrollmentLink"; | ||
| public const string DISABLE_OTP = "disableOTP"; | ||
| public const string AUTH_COUNTER = "authCounter"; | ||
| public const string PREVIOUS_RESPONSE = "previousResponse"; | ||
|
|
||
| // PASSKEY | ||
| public const string PASSKEY_REGISTRATION_SERIAL = "passkey_registration_serial"; | ||
|
|
||
| // TOKEN'S TRANSACTION ID | ||
| public const string PUSH_TRANSACTION_ID = "push_transaction_id"; | ||
| public const string WEBAUTHN_TRANSACTION_ID = "webauthn_transaction_id"; | ||
| public const string PASSKEY_TRANSACTION_ID = "passkey_transaction_id"; | ||
| public const string OTP_TRANSACTION_ID = "otp_transaction_id"; | ||
|
|
||
| // MODE | ||
| public const string MODE = "mode"; | ||
| public const string PUSH_MODE = "push"; | ||
| public const string OTP_MODE = "otp"; | ||
| public const string WEBAUTHN_MODE = "webauthn"; | ||
| public const string PASSKEY_MODE = "passkey"; | ||
lukasmatusiewicz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.