Skip to content

Latest commit

 

History

History
97 lines (67 loc) · 3.77 KB

File metadata and controls

97 lines (67 loc) · 3.77 KB

Auth Commands ryan_serverpod_server git:(master) ✗ dart run serverpod_api_docs:generate --update --unauth
Building package executable... Built serverpod_api_docs:generate. 📝 Update mode: Loading existing OpenAPI specification...

🔧 Applying command-line arguments to the specification... -> Globally disabling authentication for all endpoints...

✅ Successfully updated apispec.json!

➜ ryan_serverpod_server git:(master) ✗ dart run serverpod_api_docs:generate --update --secure-endpoints=/jwtAuth/getCurrentUser
Building package executable... Built serverpod_api_docs:generate. 📝 Update mode: Loading existing OpenAPI specification...

🔧 Applying command-line arguments to the specification... -> Auth type not provided via CLI. Attempting to infer from existing spec... - Inferred auth type: "jwt" -> Applying security policies using auth type "jwt"... - SECURING endpoint: /jwtAuth/getCurrentUser

✅ Successfully updated apispec.json!

➜ ryan_serverpod_server git:(master) ✗ dart run serverpod_api_docs:generate --update --unsecure-endpoints=/jwtAuth/getCurrentUser Building package executable... Built serverpod_api_docs:generate. 📝 Update mode: Loading existing OpenAPI specification...

🔧 Applying command-line arguments to the specification... -> Auth type not provided via CLI. Attempting to infer from existing spec... - Inferred auth type: "jwt" -> Applying security policies using auth type "jwt"... - UNSECURING endpoint: /jwtAuth/getCurrentUser

✅ Successfully updated apispec.json!

➜ ryan_serverpod_server git:(master) ✗ dart run serverpod_api_docs:generate --update --secure-single-url=/jwtAuth/getCurrentUser Building package executable... Built serverpod_api_docs:generate. 📝 Update mode: Loading existing OpenAPI specification...

🔧 Applying command-line arguments to the specification... -> Auth type not provided via CLI. Attempting to infer from existing spec... - Inferred auth type: "jwt" -> Applying single-URL patches using auth type "jwt"... - Securing single URL: /jwtAuth/getCurrentUser

✅ Successfully updated apispec.json!

➜ ryan_serverpod_server git:(master) ✗ dart run serverpod_api_docs:generate --update --unsecure-single-url=/jwtAuth/getCurrentUser Building package executable... Built serverpod_api_docs:generate. 📝 Update mode: Loading existing OpenAPI specification...

🔧 Applying command-line arguments to the specification... -> Auth type not provided via CLI. Attempting to infer from existing spec... - Inferred auth type: "jwt" -> Applying single-URL patches using auth type "jwt"... - Unsecuring single URL: /jwtAuth/getCurrentUser

✅ Successfully updated apispec.json!

ryan_serverpod_server git:(master) ✗ dart run serverpod_api_docs:generate --update --http-method=/jwtAuth/jwtLogin:post
Building package executable... Built serverpod_api_docs:generate. 📝 Update mode: Loading existing OpenAPI specification...

🔧 Applying command-line arguments to the specification... -> No security flags provided. Generating spec without authentication. -> Applying custom HTTP methods... - Changed /jwtAuth/jwtLogin from GET to POST

✅ Successfully updated apispec.json!

➜ ryan_serverpod_server git:(master) ✗ dart run serverpod_api_docs:generate --update --http-method=/jwtAuth/jwtLogin:get Building package executable... Built serverpod_api_docs:generate. 📝 Update mode: Loading existing OpenAPI specification...

🔧 Applying command-line arguments to the specification... -> No security flags provided. Generating spec without authentication. -> Applying custom HTTP methods... - Changed /jwtAuth/jwtLogin from POST to GET

✅ Successfully updated apispec.json! ➜ ryan_serverpod_server git:(master) ✗