@@ -875,6 +875,15 @@ typedef void (*ziti_mfa_enroll_cb)(ziti_context ztx, int status, ziti_mfa_enroll
875875 */
876876typedef void (* ziti_mfa_cb )(ziti_context ztx , int status , void * ctx );
877877
878+ /**
879+ * @brief Callback called by ziti_ext_auth to complete external authentication
880+ *
881+ *
882+ * @param ztx the handle to the Ziti Edge identity context needed for other Ziti C SDK functions
883+ * @param url the URL to open
884+ * @param ctx additional context to be passed into the original authentication call
885+ */
886+ typedef void (* ziti_ext_auth_launch_cb )(ziti_context ztx , const char * url , void * ctx );
878887
879888/**
880889 * @brief Callback called after ziti_mfa_get_recovery_codes() and ziti_mfa_new_recovery_codes()
@@ -993,9 +1002,17 @@ extern void ziti_mfa_new_recovery_codes(ziti_context ztx, char *code, ziti_mfa_r
9931002ZITI_FUNC
9941003extern void ziti_mfa_auth (ziti_context ztx , const char * code , ziti_mfa_cb auth_cb , void * ctx );
9951004
996- extern int ziti_ext_auth (ziti_context ztx ,
997- void (* ziti_ext_launch )(ziti_context , const char * url , void * ),
998- void * ctx );
1005+ /**
1006+ * @brief Authenticate with an external JWT signer
1007+ *
1008+ * @param ztx the handle to the Ziti Edge identity context needed for other Ziti C SDK functions
1009+ * @param launch_cb callback to complete authentication with the JWT provider
1010+ * @param ctx additional context to be passed into the callback
1011+ *
1012+ * @see ziti_use_ext_jwt_signer()
1013+ */
1014+ ZITI_FUNC
1015+ extern int ziti_ext_auth (ziti_context ztx , ziti_ext_auth_launch_cb launch_cb , void * ctx );
9991016
10001017extern int ziti_ext_auth_token (ziti_context ztx , const char * token );
10011018
0 commit comments