You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/scim/persistence/entityframework.md
+51-1Lines changed: 51 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,4 +130,54 @@ app.UseScim();
130
130
app.Run();
131
131
```
132
132
133
-
This setup shows how to accommodate SQLite’s limitations while still benefitting from Entity Framework’s powerful migration and connection capabilities.
133
+
This setup shows how to accommodate SQLite’s limitations while still benefitting from Entity Framework’s powerful migration and connection capabilities.
134
+
135
+
## Running the EF Migration
136
+
137
+
Once your SCIM server is configured and ready to use a database, you can trigger the EF Core migration by calling the `EnsureEfStoreMigrated` function in your `Program.cs` file.
1.**List of SCIM Schemas** : You can use the `SCIMSchemaExtractor` class to extract SCIM schemas from a JSON file. For example:
147
+
148
+
```
149
+
var userSchema = SimpleIdServer.Scim.SCIMSchemaExtractor.Extract(Path.Combine(basePath, "UserSchema.json"), SCIMResourceTypes.User, true);
150
+
```
151
+
152
+
2.**List of attribute mappings** : These mappings define parent-child relationships between two types of representations—for example, between a `Group` and a `User`.
153
+
154
+
The code snippet below sets up the relationship from a `Group` to a `User`, where the `members` property of a `group` contains a list of `users`:
The following code snippet sets up the inverse relationship from a `User` to a `Group`, where the `groups` property of a `user` contains a list of `groups` :
Copy file name to clipboardExpand all lines: website/docs/scim/persistence/mongodb.md
+51-1Lines changed: 51 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,4 +43,54 @@ Several properties can be customized during the configuration process. Understan
43
43
| CollectionRealms | Used for storing realms if your SCIM server segregates data based on different domains or contexts. |
44
44
| SupportTransaction | Boolean flag indicating if your MongoDB deployment supports transactions. When set to true, the application can take advantage of atomic operations, which are essential in environments requiring strong consistency. |
45
45
46
-
For more detailed reference, you can check out the example project available on GitHub: [SimpleIdServer Sample](https://github.com/simpleidserver/SimpleIdServer/tree/master/samples/ScimMongodb).
46
+
For more detailed reference, you can check out the example project available on GitHub: [SimpleIdServer Sample](https://github.com/simpleidserver/SimpleIdServer/tree/master/samples/ScimMongodb).
47
+
48
+
## Creating MongoDB Collections
49
+
50
+
Once your SCIM server is configured and ready to use MongoDB, you can create the necessary collections by calling the `EnsureMongoStoreDataMigrated` function in your `Program.cs` file.
1.**List of SCIM Schemas** : You can use the `SCIMSchemaExtractor` class to extract a SCIM schema from a JSON file. For example:
60
+
61
+
```
62
+
var userSchema = SimpleIdServer.Scim.SCIMSchemaExtractor.Extract(Path.Combine(basePath, "UserSchema.json"), SCIMResourceTypes.User, true);
63
+
```
64
+
65
+
2.**List of attribute mappings** : These mappings define parent-child relationships between different representation types. For instance, between a `Group` and a `User`.
66
+
67
+
The following code snippet defines the relationship from a `Group` to a `User`. The `members` property of a `group` contains a list of `users`:
0 commit comments