refactor: migrate EncryptID URLs from encryptid.jeffemmett.com to auth.ridentity.online
Part of the ridentity.online branding migration. The EncryptID auth server is now accessible at auth.ridentity.online (with the legacy encryptid.jeffemmett.com kept as a backward-compatible alias). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d060e99698
commit
55ceb55aa1
|
|
@ -6,4 +6,4 @@ NEXT_PUBLIC_RSPACE_URL=https://rspace.online
|
||||||
RSPACE_INTERNAL_URL=http://rspace-online:3000
|
RSPACE_INTERNAL_URL=http://rspace-online:3000
|
||||||
|
|
||||||
# EncryptID
|
# EncryptID
|
||||||
NEXT_PUBLIC_ENCRYPTID_SERVER_URL=https://encryptid.jeffemmett.com
|
NEXT_PUBLIC_ENCRYPTID_SERVER_URL=https://auth.ridentity.online
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
],
|
],
|
||||||
"host_permissions": [
|
"host_permissions": [
|
||||||
"https://rnotes.online/*",
|
"https://rnotes.online/*",
|
||||||
"https://encryptid.jeffemmett.com/*",
|
"https://auth.ridentity.online/*",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"action": {
|
"action": {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import {
|
||||||
} from '@encryptid/sdk/types';
|
} from '@encryptid/sdk/types';
|
||||||
import { RNOTES_PERMISSIONS } from '@encryptid/sdk/types/modules';
|
import { RNOTES_PERMISSIONS } from '@encryptid/sdk/types/modules';
|
||||||
|
|
||||||
const ENCRYPTID_SERVER = process.env.ENCRYPTID_SERVER_URL || 'https://encryptid.jeffemmett.com';
|
const ENCRYPTID_SERVER = process.env.ENCRYPTID_SERVER_URL || 'https://auth.ridentity.online';
|
||||||
|
|
||||||
// In-memory cache (5 minute TTL)
|
// In-memory cache (5 minute TTL)
|
||||||
const roleCache = new Map<string, { role: ResolvedRole; expires: number }>();
|
const roleCache = new Map<string, { role: ResolvedRole; expires: number }>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue