Class OAuth2ApplicationController

java.lang.Object
cn.herodotus.engine.rest.core.controller.BaseReadableRestController<E,ID>
cn.herodotus.engine.rest.core.controller.BaseWriteableRestController<OAuth2Application,String>
cn.herodotus.engine.oauth2.management.controller.OAuth2ApplicationController
All Implemented Interfaces:
cn.herodotus.engine.rest.core.controller.Controller, cn.herodotus.engine.rest.core.controller.ReadableController<OAuth2Application,String>, cn.herodotus.engine.rest.core.controller.WriteableController<OAuth2Application,String>

@RestController @RequestMapping("/authorize/application") public class OAuth2ApplicationController extends cn.herodotus.engine.rest.core.controller.BaseWriteableRestController<OAuth2Application,String>

Description: OAuth2应用管理接口

Author:
: gengwei.zheng
Date:
: 2022/3/1 18:52
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cn.herodotus.engine.assistant.definition.domain.Result<OAuth2Application>
    authorize(String scopeId, String[] scopes)
     
    cn.herodotus.engine.data.core.service.WriteableService<OAuth2Application,String>
     

    Methods inherited from class cn.herodotus.engine.rest.core.controller.BaseWriteableRestController

    delete, getReadableService, saveOrUpdate

    Methods inherited from class cn.herodotus.engine.rest.core.controller.BaseReadableRestController

    findByPage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface cn.herodotus.engine.rest.core.controller.Controller

    getPageInfoMap, getPageInfoMap, result, result, result, result, result, result, result, result

    Methods inherited from interface cn.herodotus.engine.rest.core.controller.ReadableController

    findAll, findById, findByPage, findByPage
  • Constructor Details

  • Method Details

    • getWriteableService

      public cn.herodotus.engine.data.core.service.WriteableService<OAuth2Application,String> getWriteableService()
    • authorize

      @PutMapping public cn.herodotus.engine.assistant.definition.domain.Result<OAuth2Application> authorize(@RequestParam(name="applicationId") String scopeId, @RequestParam(name="scopes[]") String[] scopes)