Code Monkey home page Code Monkey logo

identity-client-scim2's Introduction

identity-client-scim2

Requirements

Building the API client library requires Maven to be installed.

Installation

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>org.wso2.scim2.client</groupId>
    <artifactId>org.wso2.scim2.client</artifactId>
    <version>1.0.0</version>
    <scope>compile</scope>
</dependency>

Others

At first generate the JAR by executing:

mvn package

Then manually install the following JARs:

  • target/swagger-java-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

public class Scimv2BulkApiExample {

    public static void main(String[] args) {
        
        Scimv2BulkApi apiInstance = new Scimv2BulkApi();
        List<String> attributes = Arrays.asList("attributes_example"); // List<String> | SCIM defined attributes parameter.
        List<String> excludedAttributes = Arrays.asList("excludedAttributes_example"); // List<String> | SCIM defined excludedAttribute parameter.
        String body = "body_example"; // String | 
        try {
            apiInstance.createBulk(attributes, excludedAttributes, body);
        } catch (ScimApiException e) {
            System.err.println("Exception when calling Scimv2BulkApi#createBulk");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

Class Method HTTP request Description
Scimv2BulkApi createBulk POST Return the bulk which was created.
Scimv2GroupsApi createGroup POST Return the group which was created
Scimv2GroupsApi deleteGroup DELETE Delete the group with the given id
Scimv2GroupsApi getGroup GET Return groups according to the filter, sort and pagination parameters
Scimv2GroupsApi getGroupById GET Return the group with the given id
Scimv2GroupsApi getGroupsByPost POST Return groups according to the filter, sort and pagination parameters
Scimv2GroupsApi updateGroup PUT Return the updated group
Scimv2MeApi createMe POST Return the user which was anonymously created
Scimv2MeApi deleteMe DELETE Delete the authenticated user.
Scimv2MeApi getMe GET Return the authenticated user.
Scimv2MeApi updateMe PUT Return the updated user
Scimv2ResourceTypeApi getResourceType GET Return the ResourceType schema.
Scimv2ServiceProviderConfigApi getServiceProviderConfig GET Return the ServiceProviderConfig schema.
Scimv2UsersApi createUser POST Return the user which was created
Scimv2UsersApi deleteUser DELETE Delete the user with the given id
Scimv2UsersApi getUser GET Return users according to the filter, sort and pagination parameters
Scimv2UsersApi getUserById GET Return the user with the given id
Scimv2UsersApi getUsersByPost POST Return users according to the filter, sort and pagination parameters
Scimv2UsersApi updateUser PUT Return the updated user

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ScimApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

[email protected]

identity-client-scim2's People

Contributors

chamathns avatar imalshag avatar isurangaperera avatar jkaushalya avatar kanapriya avatar keerthu avatar kesavany avatar maheshika avatar senthalan avatar udeshathukorala avatar wso2-jenkins-bot avatar yoshani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

identity-client-scim2's Issues

PATCH operations are missing

Description:
PATCH operations are not defined in identity-client-scim2 but has been implemented in outbound-connector-scim2.

Suggested Labels:
Bug

Suggested Assignees:

Affected Product Version:

OS, DB, other environment details and versions:

Steps to reproduce:

Related Issues:

javax.net.ssl.SSLException: hostname in certificate didn't match: <ip> != </localhost/localhost>

Description:
Does anybody have an example using this client passing the parameters to create a user and get the response? I just want to create a user in WSO2 Identity Server. I'm trying to use this API but I'm getting an error. I don't know if I'm using properly.

Suggested Labels:
createUser, callApi.

Affected Product Version:
wso2is:5.10.0

OS, DB, other environment details and versions:
Docker:20.10.6
wso2is:5.10.0
java:1.8

Steps to reproduce:
Trying to create a user using this API and passing client-truststore.jks as keystore.
protected void prepare() throws IOException {
utils.loadConfiguration();
utils.setKeyStore();
}

protected void submit(HttpMethodBase method) throws IOException {
HttpClient httpUpdateClient = new HttpClient();
// Erro SSL*****
int responseStatus = httpUpdateClient.executeMethod(method);
// Erro SSL*****
String response = method.getResponseBodyAsString();
System.out.println("/SCIM response status: " + responseStatus);
System.out.println("SCIM response data: " + response + "
/");
}

SCIMUtils.java
protected void setKeyStore() {
System.setProperty("javax.net.ssl.trustStore", "client-truststore.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
System.setProperty("javax.net.ssl.trustStoreType", "JKS");
}

Related Issues:
Getting error: javax.net.ssl.SSLException: hostname in certificate didn't match: <192.168.21.120> != </localhost/localhost>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.