Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/walteh/webauthn
https://github.com/walteh/webauthn
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/walteh/webauthn
- Owner: walteh
- Created: 2022-11-06T21:09:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T02:26:13.000Z (about 1 year ago)
- Last Synced: 2024-12-13T00:46:49.349Z (29 days ago)
- Language: Go
- Size: 104 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# **URL** : `/auth/apple/passkey/init`
**Method** : `POST`
**Request Headers**
```
none
```### Success Response
**Code** : `204 OK`
**Response Headers**
```http
X-Nugg-Challenge-User: "URL Base64 encoded String"
X-Nugg-Challenge-Raw: "URL Base64 encoded String"
```### Error Response
**Code** : `500 INTERNAL SERVER ERROR`
# **URL** : `/auth/apple/passkey/register`
**Method** : `POST`
**Request Headers**
```http
X-Nugg-Webauthn-Creation: "Standard Base64 encoded JSON defined below"
``````go
type XNuggWebauthnCreation struct {
RawAttestationObject []byte `json:"rawAttestationObject"`
RawClientData []byte `json:"rawClientData"`
CredentialID []byte `json:"credentialID"`
}
```### Success Response
**Code** : `204 OK`
**Response Headers**
```http
X-Nugg-Challenge-Raw: "URL Base64 encoded String"
```### Error Response
**Code** : `500 INTERNAL SERVER ERROR`
# **URL** : `/auth/apple/passkey/login`
**Method** : `POST`
**Request Headers**
```http
X-Nugg-Webauthn-Assertion: "Standard Base64 encoded JSON defined below"
``````go
type XNuggWebauthnAssertion struct {
UserID []byte `json:"userID"`
CredentialID []byte `json:"credentialID"`
RawClientDataJSON []byte `json:"rawClientDataJSON"`
RawAuthenticatorData []byte `json:"rawAuthenticatorData"`
Signature []byte `json:"signature"`
Type string `json:"credentialType"`
}
```### Success Response
**Code** : `204 OK`
**Response Headers**
```http
X-Nugg-Challenge-Raw: "URL Base64 encoded String"
```### Error Response
**Code** : `500 INTERNAL SERVER ERROR`