Module ocs_simple_auth_fsm

This library module implements functions for simple authentication in the ocs application.

Copyright © 2016 - 2026 SigScale Global Inc.

Behaviours: gen_fsm.

References

Description

This library module implements functions for simple authentication in the ocs application.

Data Types

statedata()

statedata() = #statedata{protocol = radius | diameter, server_address = undefined | inet:ip_address(), server_port = undefined | pos_integer(), client_address = undefined | inet:ip_address(), client_port = undefined | pos_integer(), radius_fsm = undefined | pid(), shared_secret = undefined | binary(), session_id = string() | {NAS::inet:ip_address() | string(), Port::string(), Peer::string()}, radius_id = undefined | byte(), req_auth = undefined | [byte()] | binary(), req_attr = undefined | radius_attributes:attributes(), res_attr = undefined | radius_attributes:attributes(), subscriber = undefined | string(), multisession = undefined | boolean(), app_id = undefined | non_neg_integer(), auth_request_type = undefined | 1..3, origin_host = undefined | string(), origin_realm = undefined | string(), dest_host = undefined | string(), dest_realm = undefined | string(), password = undefined | binary() | {ChapId::0..255, ChapPassword::binary(), Challenge::binary()}, diameter_port_server = undefined | pid(), request = undefined | #diameter_nas_app_AAR{}, password_required = boolean(), trusted = boolean(), service_type = undefined | integer()}

Function Index

init/1Initialize the ocs_simple_auth_fsm finite state machine.
request/2Handle events sent with gen_fsm:send_event/2 in the request state.
handle_event/3Handle an event sent with gen_fsm:send_all_state_event/2.
handle_sync_event/4Handle an event sent with gen_fsm:sync_send_all_state_event/2,3.
handle_info/3Handle a received message.
terminate/3Cleanup and exit.
code_change/4Update internal state data during a release upgrade/downgrade.
get_service_type/1*

Function Details

init/1

init(Args) -> Result

Initialize the ocs_simple_auth_fsm finite state machine.

See also: //stdlib/gen_fsm:init/1.

request/2

request(Event, StateData) -> Result

Handle events sent with gen_fsm:send_event/2 in the request state. @see //stdlib/gen_fsm:StateName/2

To do

handle_event/3

handle_event(Event, StateName, StateData) -> Result

Handle an event sent with gen_fsm:send_all_state_event/2.

See also: //stdlib/gen_fsm:handle_event/3.

handle_sync_event/4

handle_sync_event(Event, From, StateName, StateData) -> Result

Handle an event sent with gen_fsm:sync_send_all_state_event/2,3.

See also: //stdlib/gen_fsm:handle_sync_event/4.

handle_info/3

handle_info(Info, StateName, StateData) -> Result

Handle a received message.

See also: //stdlib/gen_fsm:handle_info/3.

terminate/3

terminate(Reason, StateName, StateData) -> any()

Cleanup and exit.

See also: //stdlib/gen_fsm:terminate/3.

code_change/4

code_change(OldVsn, StateName, StateData, Extra) -> Result

Update internal state data during a release upgrade/downgrade.

See also: //stdlib/gen_fsm:code_change/4.

get_service_type/1 *

get_service_type(Attr) -> any()


Generated by EDoc