Class OAuth2DeviceController

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

@RestController @RequestMapping("/authorize/device") public class OAuth2DeviceController extends cn.herodotus.engine.rest.core.controller.BaseWriteableRestController<OAuth2Device,String>

Description: OAuth2DeviceController

Author:
: gengwei.zheng
Date:
: 2023/5/15 16:58
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    cn.herodotus.engine.assistant.definition.domain.Result<OAuth2Device>
    authorize(String deviceId, String[] scopes)
     
    cn.herodotus.engine.data.core.service.WriteableService<OAuth2Device,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<OAuth2Device,String> getWriteableService()
    • authorize

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