Skip to content

Commit

Permalink
Merge pull request #3 from integration-os/feature/enhance-token-creation
Browse files Browse the repository at this point in the history
chore: added identity and identityType to token payload
  • Loading branch information
paulkr authored Oct 8, 2024
2 parents 5e3f5b6 + 085d8c5 commit 0e4d0fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integrationos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__all__ = ['AuthKitToken']

__version__ = "1.0.1"
__version__ = "1.1.0"
6 changes: 4 additions & 2 deletions integrationos/auth_kit.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ def _create_embed_token(self, connected_platforms: List, event_links: Dict, sett
"connectedPlatforms": connected_platforms,
"eventIncToken": event_links["token"]
},
"group": event_links["group"],
"label": event_links["label"],
"identity": event_links["identity"],
"identityType": event_links["identityType"],
"group": event_links["group"], # Deprecated
"label": event_links["label"], # Deprecated
"environment": "test" if self.secret.startswith("sk_test") else "live",
"expiresAt": int(time.time() * 1000) + (5 * 1000 * 60),
"sessionId": self._get_session_id()['id'],
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="integrationos-authkit",
version="1.0.1",
version="1.1.0",
author="IntegrationOS",
author_email="[email protected]",
description="Secure token generation for IntegrationOS AuthKit in Python",
Expand Down

0 comments on commit 0e4d0fa

Please sign in to comment.