Skip to content
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

Add authentication events #2119

Closed
andrewpmartinez opened this issue Jun 10, 2024 · 2 comments · Fixed by #2443
Closed

Add authentication events #2119

andrewpmartinez opened this issue Jun 10, 2024 · 2 comments · Fixed by #2443
Assignees
Labels
controller Issue related to the controller metrics/reporting

Comments

@andrewpmartinez
Copy link
Member

andrewpmartinez commented Jun 10, 2024

  • auth pass
  • token refresh
  • token exchange

Use cases:

  • show offline/online status
  • forensics
@andrewpmartinez andrewpmartinez self-assigned this Jun 10, 2024
@plorenz
Copy link
Member

plorenz commented Sep 25, 2024

Going to split failure events into a separate issue

@plorenz
Copy link
Member

plorenz commented Sep 25, 2024

Adding two new event types:

  • refreshed
  • exchanged

Added a new Type field, with values:

  • legacy - for older api sessions
  • jwt - for JWT based sessions

The Token field will be blank for jwt api sessions, both for security and brevity, since the whole token would be huge.

Examples:

{
  "namespace": "edge.apiSessions",
  "event_type": "created",
  "id": "cm1iaioo9000dnbm39qabmw76",
  "type": "legacy",
  "timestamp": "2024-09-25T20:00:51.56800297Z",
  "token": "8fec0071-4939-403c-a9c3-691b2f92ba13",
  "identity_id": "Cq4hN-CPC",
  "ip_address": "66.66.118.13"
}

{
  "namespace": "edge.apiSessions",
  "event_type": "created",
  "id": "53cdede8-02b3-4d8b-b0f1-1849b8ef81cb",
  "type": "jwt",
  "timestamp": "2024-09-25T20:01:40.43810868Z",
  "token": "",
  "identity_id": "3DTpNyCzC.",
  "ip_address": "98.81.234.87:47906"
}

{
  "namespace": "edge.apiSessions",
  "event_type": "refreshed",
  "id": "db22d35e-ee29-4737-8c79-de4b6066b277",
  "type": "jwt",
  "timestamp": "2024-09-25T20:55:53.710710014Z",
  "token": "",
  "identity_id": "3DTpNyCzC.",
  "ip_address": "3.90.50.255:44400"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controller Issue related to the controller metrics/reporting
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants