Fixed CORS and trait issue Kratos
This commit is contained in:
parent
4d92bc3e86
commit
bfdc915631
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json",
|
"$id": "file:///etc/config/kratos/default.schema.json",
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Person",
|
"title": "default",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"traits": {
|
"traits": {
|
||||||
@ -10,6 +10,7 @@
|
|||||||
"email": {
|
"email": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "email",
|
"format": "email",
|
||||||
|
"title": "E-Mail",
|
||||||
"minLength": 3,
|
"minLength": 3,
|
||||||
"ory.sh/kratos": {
|
"ory.sh/kratos": {
|
||||||
"credentials": {
|
"credentials": {
|
||||||
@ -31,7 +32,7 @@
|
|||||||
"minLength": 3
|
"minLength": 3
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["email"],
|
"required": ["email", "username"],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,28 @@
|
|||||||
version: v0.10.1
|
version: v0.10.1
|
||||||
|
|
||||||
dsn: memory
|
dsn: memory
|
||||||
|
dev: true
|
||||||
|
|
||||||
serve:
|
serve:
|
||||||
public:
|
public:
|
||||||
base_url: http://127.0.0.1:4433/
|
base_url: http://127.0.0.1:4433/
|
||||||
cors:
|
cors:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
allowed_origins:
|
||||||
|
- http://127.0.0.1:3000
|
||||||
|
allowed_methods:
|
||||||
|
- POST
|
||||||
|
- GET
|
||||||
|
- PUT
|
||||||
|
- PATCH
|
||||||
|
- DELETE
|
||||||
|
allowed_headers:
|
||||||
|
- Authorization
|
||||||
|
- Cookie
|
||||||
|
- Content-Type
|
||||||
|
exposed_headers:
|
||||||
|
- Content-Type
|
||||||
|
- Set-Cookie
|
||||||
admin:
|
admin:
|
||||||
base_url: http://kratos:4434/
|
base_url: http://kratos:4434/
|
||||||
|
|
||||||
|
1
client/.env.sample
Normal file
1
client/.env.sample
Normal file
@ -0,0 +1 @@
|
|||||||
|
ORY_SDK_URL=http://localhost:4433
|
@ -45,6 +45,7 @@ const SignupForm: FC = () => {
|
|||||||
password: data.password,
|
password: data.password,
|
||||||
traits: {
|
traits: {
|
||||||
email: data.email,
|
email: data.email,
|
||||||
|
username: data.username,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user