Home / Security Tutorial / Code for Authentication Example

Security Tutorial
Code for Authentication Example
InterSystems: The power behind what matters   

Here is the code for the authentication example. Create the class using Atelier.
Class SecurityTutorial.AuthenticationExample Extends %CSP.REST
XData UrlMap 
        <Route Url="/authenticationEx" Method="Get" Call="authenticationEx"/>


ClassMethod authenticationEx() As %Status 
    Set %response.Status = ..#HTTP200OK
    Set obj={
    Write obj.%ToJSON()
    Return $$$OK
For more information about Atelier, including instructions for downloading and installing, as well as videos and tutorials on how to use it, see Atelier Download

  |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-04-10 14:45:57