Skip to content

Commit 20b6d1d

Browse files
committed
Fixing some updates on frontmatter
1 parent f905450 commit 20b6d1d

File tree

7 files changed

+527
-5
lines changed

7 files changed

+527
-5
lines changed

src/content/docs/authenticate/about-auth/about-authentication.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ relatedArticles:
99
- 0145d1ce-564e-4c28-820f-2f126abbfe3a
1010
- 720fcdda-daa6-4dff-ad2d-177af555e6bb
1111
- 2c58dabc-fe5c-4919-ade7-4caab8da47e8
12+
app_context:
13+
- m: settings
14+
s: authentication
1215
description: Learn about Kinde's authentication methods including password, passwordless, social sign-in, and enterprise connections.
1316
metadata:
1417
topics: [authenticate]

src/content/docs/build/applications/add-and-manage-applications.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
page_id: 6c70b7ae-11b-43bb-bea1-9b3ec88dd082
2+
page_id: 6c70b7ae-1b1b-43bb-bea1-9b3ec88dd082
33
title: Add and manage applications
44
description: Step-by-step guide for adding and managing applications in Kinde including configuration tasks, application deletion, and integration setup requirements.
55
sidebar:

src/content/docs/design/customize-with-code/understand-page-design.mdx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,4 +317,26 @@ The top level `context` key object contains information about the page itself, l
317317
- `widget` contains data generated from the widget
318318
- `content` an object containing page content - translated and with placeholders replace
319319
- `pageTitle` the title of the page commonly displayed in the `<title>` tag for showing in the browser tab
320-
- `heading`
320+
- `heading` the main heading for the page
321+
- `description` the page description
322+
- `logoAlt` the alt text for your company logo
323+
324+
## Page settings
325+
326+
Sometimes additional information needs to be passed to Kinde from your page. You can use the page settings object for this.
327+
328+
```js
329+
export const pageSettings = {};
330+
```
331+
332+
The main use case for this is when you want to make bindings available to your page, for example access to your Kinde environment variables.
333+
334+
```js
335+
export const pageSettings = {
336+
bindings: {
337+
"kinde.env": {}
338+
}
339+
};
340+
```
341+
342+
This allows you to have fine grained control over what your pages can access.

src/content/docs/developer-tools/sdks/backend/java-sdk-v1.mdx

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,4 +1008,101 @@ Sample output:
10081008
[
10091009
"orgCodes" => ["org_8de8711f46a", "org_820c0f318de"]
10101010
];
1011-
```
1011+
```
1012+
1013+
### `getFlag`
1014+
Gets a feature flag from an access token.
1015+
Arguments:
1016+
```java
1017+
request?: HttpServletRequest,
1018+
flagName: string, options?: Map<String, Object> //"defaultValue" => any
1019+
```
1020+
Usage:
1021+
```java
1022+
this.kindeClientSDK.getFlag(request,"is_dark_mode");
1023+
```
1024+
Sample output:
1025+
```java
1026+
[
1027+
"code": "is_dark_mode",
1028+
"type": "boolean",
1029+
"value": true,
1030+
"is_default": false
1031+
];
1032+
```
1033+
### `getBooleanFlag`
1034+
Gets a boolean feature flag from an access token.
1035+
Arguments:
1036+
```java
1037+
request?: HttpServletRequest,
1038+
flagName: string, defaultValue?: boolean
1039+
```
1040+
Usage:
1041+
```java
1042+
kindeClientSDK.getBooleanFlag(request,"is_dark_mode", false);
1043+
```
1044+
Sample output:
1045+
```java
1046+
[
1047+
"code": "is_dark_mode",
1048+
"type": "boolean",
1049+
"value": false,
1050+
"is_default": true
1051+
];
1052+
```
1053+
### `getStringFlag`
1054+
Gets a string feature flag from an access token.
1055+
Arguments:
1056+
```java
1057+
request?: HttpServletRequest,
1058+
flagName: string, defaultValue?: string
1059+
```
1060+
Usage:
1061+
```java
1062+
kindeClientSDK.getStringFlag(request,"theme");
1063+
```
1064+
Sample output:
1065+
```java
1066+
[
1067+
"code": "theme",
1068+
"type": "string",
1069+
"value": "black",
1070+
"is_default": false
1071+
];
1072+
```
1073+
### `getIntegerFlag`
1074+
Gets a integer feature flag from an access token.
1075+
Arguments:
1076+
```java
1077+
request?: HttpServletRequest,
1078+
flagName: string, defaultValue?: integer
1079+
```
1080+
Usage:
1081+
```java
1082+
kindeClientSDK.getIntegerFlag(request,"competitions_limit");
1083+
```
1084+
Sample output:
1085+
```java
1086+
[
1087+
"code": "competitions_limit",
1088+
"type": "integer",
1089+
"value": 1,
1090+
"is_default": false
1091+
];
1092+
```
1093+
### `isAuthenticated`
1094+
To check user authenticated or not.
1095+
Arguments:
1096+
```java
1097+
response?: HttpServletResponse
1098+
request?: HttpServletRequest
1099+
```
1100+
Usage:
1101+
```java
1102+
this.kindeClientSDK.isAuthenticated(request, response);
1103+
```
1104+
Sample output:
1105+
```java
1106+
true or false
1107+
```
1108+
If you need help connecting to Kinde, please contact us at [[email protected]](mailto:[email protected]).

src/content/docs/developer-tools/sdks/backend/ruby-sdk.mdx

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,5 +699,176 @@ Constructs a redirect URL and sends the user to Kinde to sign in.
699699

700700
Arguments:
701701

702+
```ruby
703+
{org_code?: string}
704+
```
705+
706+
Usage:
707+
708+
```ruby
709+
$kinde->login();
710+
```
711+
712+
Allow `org_code` to be provided if a specific organization is being signed into.
713+
714+
### `register`
715+
716+
Constructs a redirect URL and sends the user to Kinde to sign up.
717+
718+
Arguments:
719+
720+
```ruby
721+
{org_code?: string}
722+
```
723+
724+
Usage:
725+
726+
```ruby
727+
$kinde->register();
728+
```
729+
730+
### `logout`
731+
732+
Logs the user out of Kinde.
733+
734+
Usage:
735+
736+
```ruby
737+
$kinde->logout();
738+
```
739+
740+
### `getToken`
741+
742+
Returns the raw Access token from URL after logged from Kinde.
743+
744+
Usage:
745+
746+
```ruby
747+
$kinde->getToken();
702748
```
749+
750+
Sample output:
751+
752+
```ruby
753+
eyJhbGciOiJIUzI1...
754+
```
755+
756+
### `createOrg`
757+
758+
Constructs a redirect URL and sends the user to Kinde to sign up and create a new organization in your business.
759+
760+
Arguments:
761+
762+
```ruby
763+
{org_name?: string}
703764
```
765+
766+
Usage:
767+
768+
```ruby
769+
$kinde->createOrg();
770+
or
771+
$kinde->createOrg(['org_name' => 'your organization name'});
772+
```
773+
774+
Allow `org_name` to be provided if you want a specific organization name when you create.
775+
776+
Sample output:
777+
778+
```ruby
779+
redirect
780+
```
781+
782+
### `getClaim`
783+
784+
Gets a claim from an access or ID token.
785+
786+
Arguments:
787+
788+
```ruby
789+
claim: string, tokenKey?: string
790+
```
791+
792+
Usage:
793+
794+
```ruby
795+
$kinde->getClaim('given_name', 'id_token');
796+
```
797+
798+
Sample output:
799+
800+
```ruby
801+
"David"
802+
```
803+
804+
### `getPermission`
805+
806+
Returns the state of a given permission.
807+
808+
Arguments: `key: string`
809+
810+
Usage:
811+
812+
```ruby
813+
$kinde->getPermission('read:todos');
814+
```
815+
816+
Sample output:
817+
818+
```ruby
819+
['orgCode' => 'org_1234', 'isGranted' => true]
820+
```
821+
822+
### `getPermissions`
823+
824+
Returns all permissions for the current user for the organization they are signed into.
825+
826+
Usage:
827+
828+
```ruby
829+
$kinde->getPermissions();
830+
```
831+
832+
Sample output:
833+
834+
```ruby
835+
['orgCode' => 'org_1234', permissions => ['create:todos', 'update:todos', 'read:todos']]
836+
```
837+
838+
### `getOrganization`
839+
840+
Get details for the organization your user is signed into.
841+
842+
Usage:
843+
844+
```ruby
845+
$kinde->getOrganization();
846+
```
847+
848+
Sample output:
849+
850+
```ruby
851+
['orgCode' => 'org_1234']
852+
```
853+
854+
### `getUserDetails`
855+
856+
Returns the profile for the current user.
857+
858+
Usage:
859+
860+
```ruby
861+
$kinde->getUserDetails();
862+
```
863+
864+
Sample output:
865+
866+
```ruby
867+
['given_name' => 'Dave', 'id' => 'abcdef', 'family_name' => 'Smith', 'email' => 'mailto:[email protected]']
868+
```
869+
870+
### `getUserOrganizations`
871+
872+
Gets an array of all organizations the user has access to.
873+
874+
If you need help connecting to Kinde, contact us at [[email protected]](mailto:[email protected]).

0 commit comments

Comments
 (0)