USP_REGISTER_PLUGINSERVICE_TOKEN

Registers a token in the database so that the plugin service can authenticate with the token.

Parameters

Parameter Parameter Type Mode Description
@TOKEN uniqueidentifier IN
@CACHELENGTH int IN

Definition

Copy


create procedure dbo.USP_REGISTER_PLUGINSERVICE_TOKEN
(
    @TOKEN uniqueidentifier,
    @CACHELENGTH int = 60
)
as
begin
    declare @EXPIRATION datetime;
    set @EXPIRATION = DATEADD(s, @CACHELENGTH, GetUTCDate());
    exec [dbo].[spTempDataAdd] @TOKEN, null, '1',@EXPIRATION;
end