Skip to content

Enable disable OpenID

Konstantinos Vandikas edited this page Apr 28, 2015 · 3 revisions

To disable the usage of open id in the IoT-Framework, edit src/openid.erl and comment out the first 4 lines in function auth_request. Then include {ok, true}. (don't forget to type the dot at the end of the sentence).

auth_request(ReqData) ->
%    case authenticate("Access-Token", ReqData) of
%        {error, Error} -> {error, ?STATUS_AUTHENTICATION_FAIL, "{\"error\": \"" ++ Error ++ "\"}"};
%        {ok, TokenOwner}   -> authorize(ReqData, TokenOwner)
%    end.
%{ok,true}.
Clone this wiki locally