WSO2 Carbon - Auth/Authz Modules


Лицензия

Лицензия

Категории

Категории

IDE Инструменты разработки
Группа

Группа

org.wso2.carbon.identity
Идентификатор

Идентификатор

identity-carbon-auth-rest
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

pom
Описание

Описание

WSO2 Carbon - Auth/Authz Modules
Ссылка на сайт

Ссылка на сайт

http://wso2.org
Организация-разработчик

Организация-разработчик

WSO2
Система контроля версий

Система контроля версий

https://github.com/wso2-extensions/identity-carbon-auth-rest.git

Скачать identity-carbon-auth-rest

Имя Файла Размер
identity-carbon-auth-rest-1.0.1.pom 14 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.wso2.carbon.identity/identity-carbon-auth-rest/ -->
<dependency>
    <groupId>org.wso2.carbon.identity</groupId>
    <artifactId>identity-carbon-auth-rest</artifactId>
    <version>1.0.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.wso2.carbon.identity/identity-carbon-auth-rest/
implementation 'org.wso2.carbon.identity:identity-carbon-auth-rest:1.0.1'
// https://jarcasting.com/artifacts/org.wso2.carbon.identity/identity-carbon-auth-rest/
implementation ("org.wso2.carbon.identity:identity-carbon-auth-rest:1.0.1")
'org.wso2.carbon.identity:identity-carbon-auth-rest:pom:1.0.1'
<dependency org="org.wso2.carbon.identity" name="identity-carbon-auth-rest" rev="1.0.1">
  <artifact name="identity-carbon-auth-rest" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.wso2.carbon.identity', module='identity-carbon-auth-rest', version='1.0.1')
)
libraryDependencies += "org.wso2.carbon.identity" % "identity-carbon-auth-rest" % "1.0.1"
[org.wso2.carbon.identity/identity-carbon-auth-rest "1.0.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • components/org.wso2.carbon.identity.auth.service
  • components/org.wso2.carbon.identity.auth.valve
  • components/org.wso2.carbon.identity.authz.service
  • components/org.wso2.carbon.identity.authz.valve
  • features/org.wso2.carbon.identity.auth.server.feature
  • features/org.wso2.carbon.identity.authz.server.feature

#identity-carbon-auth-rest

Custom Header Filter

Custom Header Filter to add customer headers for applications using the resource manager service.

Setting-up Guide

  1. Setup WSO2 Identity Server and enable Configuration Manager

    https://is.docs.wso2.com/en/latest/develop/using-the-configuration-management-rest-apis/

  2. Build the project and copy org.wso2.carbon.identity.custom.header.filter-${project.version}.jar to the <IS_HOME>/repository/components/dropins directory.

  3. Open deployment.toml and enable the CustomHeaderFilter by adding following lines

       [custom_header_filter]
       enable = true
    
  4. Create custom header configurations through the Configuration Manager API.

    1. Enable the Custom Header Filter by adding the resource type custom-headers.
    curl -k -X POST https://localhost:9443/api/identity/config-mgt/v1.0/resource-type \
       -H "accept: application/json" -H 'Content-Type: application/json' \
       -H 'Authorization: Basic YWRtaW46YWRtaW4=' \
       -d '{"name": "custom-headers", "description": "This is the resource type for custom header resources."}'
    
    1. Create a new app along with headers to be written.

    e.g Create a header named Content-Security for the application wso2app.

    curl -k -X POST https://localhost:9443/api/identity/config-mgt/v1.0/resource/custom-headers \
        -H "accept: application/json" -H 'Content-Type: application/json' \
        -H 'Authorization: Basic YWRtaW46YWRtaW4=' \
        -d '{"name": "wso2app","attributes": [{"key":"Content-Security", "value":"values"}]}'
    
    1. You can add headers to an existing app as follows.

    e.g Add headers to the existing wso2app app.

    curl -k -X POST https://localhost:9443/api/identity/config-mgt/v1.0/resource/custom-headers/wso2app \
         -H "accept: application/json" -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46YWRtaW4=' \
         -d '{"key":"Content-Security-Policy", "value":"values"}'
    
org.wso2.carbon.identity

WSO2 Extensions

Версии библиотеки

Версия
1.0.1
1.0.0
1.0.0-m1